瀏覽代碼

Add more targets to automatically select `mem` feature. (#357)

Eric Huss 5 年之前
父節點
當前提交
c2eba93e28
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      build.rs

+ 2 - 0
build.rs

@@ -27,6 +27,8 @@ fn main() {
     // provide them.
     if (target.contains("wasm32") && !target.contains("wasi"))
         || (target.contains("sgx") && target.contains("fortanix"))
+        || target.contains("-none")
+        || target.contains("nvptx")
     {
         println!("cargo:rustc-cfg=feature=\"mem\"");
     }