Skip to content

Commit c2eba93

Browse files
authored
Add more targets to automatically select mem feature. (#357)
1 parent 1108d2a commit c2eba93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ fn main() {
2727
// provide them.
2828
if (target.contains("wasm32") && !target.contains("wasi"))
2929
|| (target.contains("sgx") && target.contains("fortanix"))
30+
|| target.contains("-none")
31+
|| target.contains("nvptx")
3032
{
3133
println!("cargo:rustc-cfg=feature=\"mem\"");
3234
}

0 commit comments

Comments
 (0)