about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-07-25 18:46:52 +0900
committerGitHub <noreply@github.com>2022-07-25 18:46:52 +0900
commitf4c25270d4df28e48f78a9b2bcbcccbf53b1e63b (patch)
treebfa1aee4767b5367c895662d9f5d0c419fceb6eb
parent921cfbe56fbf8a18a72bca22d2cc8748cd10213f (diff)
parenta5de4eeafc3f4371205ca97685033a2ab98a66df (diff)
downloadrust-f4c25270d4df28e48f78a9b2bcbcccbf53b1e63b.tar.gz
rust-f4c25270d4df28e48f78a9b2bcbcccbf53b1e63b.zip
Rollup merge of #99643 - daxpedda:sign-ext-wasm, r=oli-obk
Add `sign-ext` target feature to the WASM target

Some target features are still missing from that list.
See #97808 for basically the same PR by `@alexcrichton.`

Related issue: #96472.
PR introducing this issue: #87402.
-rw-r--r--compiler/rustc_codegen_ssa/src/target_features.rs1
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 bfdef2dc0e8..ecad0518533 100644
--- a/compiler/rustc_codegen_ssa/src/target_features.rs
+++ b/compiler/rustc_codegen_ssa/src/target_features.rs
@@ -249,6 +249,7 @@ const WASM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
     ("bulk-memory", Some(sym::wasm_target_feature)),
     ("mutable-globals", Some(sym::wasm_target_feature)),
     ("reference-types", Some(sym::wasm_target_feature)),
+    ("sign-ext", Some(sym::wasm_target_feature)),
 ];
 
 const BPF_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[("alu32", Some(sym::bpf_target_feature))];