Skip to content

Commit 2cfab1f

Browse files
authored
Rollup merge of #103638 - ia0:multivalue, r=nagisa
Add `multivalue` target feature to WASM target This PR is similar to #99643 and #97808. It addresses #96472 for the `multivalue` target feature. The problem I am trying to fix is to remove the following warning when compiling with `-C target-feature=+multivalue` for `--target=wasm32-unknown-unknown`. ``` warning: unknown feature specified for `-Ctarget-feature`: `multivalue` | = note: it is still passed through to the codegen backend = note: consider filing a feature request ```
2 parents 65d63ca + dad28ad commit 2cfab1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ const WASM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
267267
// tidy-alphabetical-start
268268
("atomics", Some(sym::wasm_target_feature)),
269269
("bulk-memory", Some(sym::wasm_target_feature)),
270+
("multivalue", Some(sym::wasm_target_feature)),
270271
("mutable-globals", Some(sym::wasm_target_feature)),
271272
("nontrapping-fptoint", Some(sym::wasm_target_feature)),
272273
("reference-types", Some(sym::wasm_target_feature)),

0 commit comments

Comments
 (0)