From 03001f2d5b36ec440c1cad704d2b13ece805d0db Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 22 May 2020 10:57:01 -0700 Subject: [PATCH] Add more targets to automatically select `mem` feature. --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index c4a80223..abeac9bf 100644 --- a/build.rs +++ b/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\""); }