Skip to content

Commit

Permalink
Use wasm sysroot for wasm32-wasi target as well
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Oct 5, 2020
1 parent a3c7c0a commit 3a2dba0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions secp256k1-sys/build.rs
Expand Up @@ -62,8 +62,10 @@ fn main() {
}
}

if env::var("TARGET").unwrap() == "wasm32-unknown-unknown" {
base_config.include("wasm-sysroot");
match &env::var("TARGET").unwrap() as &str {
"wasm32-unknown-unknown"|"wasm32-wasi" =>
{ base_config.include("wasm-sysroot"); },
_ => {},
}

// secp256k1
Expand Down

0 comments on commit 3a2dba0

Please sign in to comment.