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 5c41a11e62
commit a2840567da
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\"");
}