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 f4549a1 commit d5c5e57Copy full SHA for d5c5e57
gix-diff/build.rs
@@ -1,14 +1,4 @@
1
-use std::env::var_os;
2
-
3
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
+ // FIXME: Do this conditionally!
+ println!("cargo:rustc-cfg=getrandom_backend=\"wasm_js\"");
14
}
0 commit comments