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