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.
2 parents 3bff596 + 0a91f2b commit 4ae0e7eCopy full SHA for 4ae0e7e
secp256k1-sys/build.rs
@@ -51,10 +51,9 @@ fn main() {
51
#[cfg(feature = "recovery")]
52
base_config.define("ENABLE_MODULE_RECOVERY", Some("1"));
53
54
- match &env::var("TARGET").unwrap() as &str {
55
- "wasm32-unknown-unknown"|"wasm32-wasi" =>
56
- { base_config.include("wasm-sysroot"); },
57
- _ => {},
+ // Header files. WASM only.
+ if env::var("CARGO_CFG_TARGET_ARCH").unwrap() == "wasm32" {
+ base_config.include("wasm-sysroot");
58
}
59
60
// secp256k1
0 commit comments