Merge pull request #242 from TheBlueMatt/master

Use wasm sysroot for wasm32-wasi target as well
This commit is contained in:
Elichai Turkel 2020-10-06 20:29:56 +03:00 committed by GitHub
commit d31dcf20b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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