Skip to content

Commit d5c5e57

Browse files
committed
Temporarily verify the conditions are *not* the problem
This can't be set in `build.rs`, for the reasons described in: #2093 (comment) This commit is just to demonstrate that. It shall be rewound.
1 parent f4549a1 commit d5c5e57

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

gix-diff/build.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
use std::env::var_os;
2-
31
fn main() {
4-
let target = var_os("TARGET").expect("cargo sets TARGET");
5-
if target != "wasm32-unknown-unknown" {
6-
return;
7-
}
8-
9-
if let Some(feature_wasm) = var_os("CARGO_FEATURE_WASM") {
10-
if feature_wasm == "1" {
11-
println!("cargo:rustc-cfg=getrandom_backend=\"wasm_js\"");
12-
}
13-
}
2+
// FIXME: Do this conditionally!
3+
println!("cargo:rustc-cfg=getrandom_backend=\"wasm_js\"");
144
}

0 commit comments

Comments
 (0)