We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fbc08e commit 63113c8Copy full SHA for 63113c8
library/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