Use CARGO_CFG_TARGET_ARCH instead TARGET in build.rs
This commit is contained in:
parent
3bff596948
commit
0a91f2ba2b
|
@ -51,10 +51,9 @@ fn main() {
|
||||||
#[cfg(feature = "recovery")]
|
#[cfg(feature = "recovery")]
|
||||||
base_config.define("ENABLE_MODULE_RECOVERY", Some("1"));
|
base_config.define("ENABLE_MODULE_RECOVERY", Some("1"));
|
||||||
|
|
||||||
match &env::var("TARGET").unwrap() as &str {
|
// Header files. WASM only.
|
||||||
"wasm32-unknown-unknown"|"wasm32-wasi" =>
|
if env::var("CARGO_CFG_TARGET_ARCH").unwrap() == "wasm32" {
|
||||||
{ base_config.include("wasm-sysroot"); },
|
base_config.include("wasm-sysroot");
|
||||||
_ => {},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// secp256k1
|
// secp256k1
|
||||||
|
|
Loading…
Reference in New Issue