Add more targets to automatically select mem
feature. (#357)
This commit is contained in:
parent
1108d2af9d
commit
c2eba93e28
2
build.rs
2
build.rs
@ -27,6 +27,8 @@ fn main() {
|
|||||||
// provide them.
|
// provide them.
|
||||||
if (target.contains("wasm32") && !target.contains("wasi"))
|
if (target.contains("wasm32") && !target.contains("wasi"))
|
||||||
|| (target.contains("sgx") && target.contains("fortanix"))
|
|| (target.contains("sgx") && target.contains("fortanix"))
|
||||||
|
|| target.contains("-none")
|
||||||
|
|| target.contains("nvptx")
|
||||||
{
|
{
|
||||||
println!("cargo:rustc-cfg=feature=\"mem\"");
|
println!("cargo:rustc-cfg=feature=\"mem\"");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user