Don't compile memory intrinsics on wasi
This commit is contained in:
parent
fafaacecd1
commit
c8b8087c95
3
build.rs
3
build.rs
|
@ -22,7 +22,8 @@ fn main() {
|
||||||
|
|
||||||
// Forcibly enable memory intrinsics on wasm32 & SGX as we don't have a libc to
|
// Forcibly enable memory intrinsics on wasm32 & SGX as we don't have a libc to
|
||||||
// provide them.
|
// provide them.
|
||||||
if target.contains("wasm32") || (target.contains("sgx") && target.contains("fortanix")) {
|
if (target.contains("wasm32") && !target.contains("wasi")) ||
|
||||||
|
(target.contains("sgx") && target.contains("fortanix")) {
|
||||||
println!("cargo:rustc-cfg=feature=\"mem\"");
|
println!("cargo:rustc-cfg=feature=\"mem\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue