Skip to content

Commit 35f2feb

Browse files
use --mllvm=-mcpu=mvp
1 parent 5292add commit 35f2feb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler/rustc_target/src/spec/targets/wasm32v1_none.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ pub(crate) fn target() -> Target {
2929
// For now this target just never has an entry symbol no matter the output
3030
// type, so unconditionally pass this.
3131
"--no-entry",
32-
// It is also necessary to explicitly set the features since some changes
32+
// It is also necessary to explicitly set CPU since some changes
3333
// were made to WebAssembly starting with LLVM 20.1.0:
3434
// https://releases.llvm.org/20.1.0/docs/ReleaseNotes.html#changes-to-the-webassembly-backend
35-
"--features=+mutable-globals",
36-
"--no-check-features",
35+
"--mllvm=-mcpu=mvp",
3736
],
3837
);
3938
options.add_pre_link_args(
@@ -42,7 +41,7 @@ pub(crate) fn target() -> Target {
4241
// Make sure clang uses LLD as its linker and is configured appropriately
4342
// otherwise
4443
"--target=wasm32-unknown-unknown",
45-
"-Wl,--no-entry,--features=+mutable-globals,--no-check-features",
44+
"-Wl,--no-entry,--mllvm=-mcpu=mvp",
4645
],
4746
);
4847

0 commit comments

Comments
 (0)