We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-mcpu=mvp
-mmutable-globals
wasm32v1-none
1 parent a928923 commit 48f676eCopy full SHA for 48f676e
src/lib.rs
@@ -2531,6 +2531,13 @@ impl Build {
2531
}
2532
2533
2534
+ if raw_target == "wasm32v1-none" {
2535
+ // `wasm32v1-none` target only exists in `rustc`, so we need to change the compilation flags:
2536
+ // https://doc.rust-lang.org/rustc/platform-support/wasm32v1-none.html
2537
+ cmd.push_cc_arg("-mcpu=mvp".into());
2538
+ cmd.push_cc_arg("-mmutable-globals".into());
2539
+ }
2540
+
2541
if target.os == "solaris" || target.os == "illumos" {
2542
// On Solaris and illumos, multi-threaded C programs must be built with `_REENTRANT`
2543
// defined. This configures headers to define APIs appropriately for multi-threaded
0 commit comments