diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2022-11-01 20:00:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-01 20:00:39 -0400 |
| commit | 2cfab1f643d590a13b0f2cdbeed4eeecfec1ced8 (patch) | |
| tree | 5b9390a7cc34a9b5514083aba7138449c570f026 /compiler/rustc_codegen_ssa/src | |
| parent | 65d63caf8def85acce09c92efbdd4b36658e7439 (diff) | |
| parent | dad28ad6d545faa099c96b1ef5e6ac89d27a4831 (diff) | |
| download | rust-2cfab1f643d590a13b0f2cdbeed4eeecfec1ced8.tar.gz rust-2cfab1f643d590a13b0f2cdbeed4eeecfec1ced8.zip | |
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 ```
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/target_features.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs index 83407ee8f9d..a4368303de5 100644 --- a/compiler/rustc_codegen_ssa/src/target_features.rs +++ b/compiler/rustc_codegen_ssa/src/target_features.rs @@ -267,6 +267,7 @@ const WASM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[ // tidy-alphabetical-start ("atomics", Some(sym::wasm_target_feature)), ("bulk-memory", Some(sym::wasm_target_feature)), + ("multivalue", Some(sym::wasm_target_feature)), ("mutable-globals", Some(sym::wasm_target_feature)), ("nontrapping-fptoint", Some(sym::wasm_target_feature)), ("reference-types", Some(sym::wasm_target_feature)), |
