Procházet zdrojové kódy

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

Eric Huss před 5 roky
rodič
revize
c2eba93e28
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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\"");
     }