Skip to content

Commit

Permalink
Add more targets to automatically select mem feature. (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss authored May 22, 2020
1 parent 1108d2a commit c2eba93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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\"");
}
Expand Down

0 comments on commit c2eba93

Please sign in to comment.