Skip to content

Commit

Permalink
Merge pull request #242 from TheBlueMatt/master
Browse files Browse the repository at this point in the history
Use wasm sysroot for wasm32-wasi target as well
  • Loading branch information
elichai committed Oct 6, 2020
2 parents a3c7c0a + 3a2dba0 commit d31dcf2
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 d31dcf2

Please sign in to comment.