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

This commit is contained in:
Eric Huss 2020-05-22 14:12:06 -07:00 committed by GitHub
parent 1108d2af9d
commit c2eba93e28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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\"");
}