Use wasm sysroot for wasm32-wasi target as well

This commit is contained in:
Matt Corallo 2020-10-05 16:13:21 -04:00
parent a3c7c0a424
commit 3a2dba0e7f
1 changed files with 4 additions and 2 deletions

View File

@ -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