We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ee106 commit 0f8d14bCopy full SHA for 0f8d14b
unwind/build.rs
@@ -2,8 +2,14 @@ use std::env;
2
3
fn main() {
4
println!("cargo:rerun-if-changed=build.rs");
5
- let target = env::var("TARGET").expect("TARGET was not set");
+ println!("cargo:rerun-if-env-changed=CARGO_CFG_MIRI");
6
+
7
+ if env::var_os("CARGO_CFG_MIRI").is_some() {
8
+ // Miri doesn't need the linker flags or a libunwind build.
9
+ return;
10
+ }
11
12
+ let target = env::var("TARGET").expect("TARGET was not set");
13
if target.contains("android") {
14
let build = cc::Build::new();
15
0 commit comments