about summary refs log tree commit diff
diff options
context:
space:
mode:
authordAxpeDDa <daxpedda@gmail.com>2022-07-23 16:58:10 +0200
committerdAxpeDDa <daxpedda@gmail.com>2022-07-23 16:58:10 +0200
commita5de4eeafc3f4371205ca97685033a2ab98a66df (patch)
treec9279b9118231e0229b3fb4d5eda822bc7a85ec5
parent2e43d068ced2162bc57da332094c06604bc1b191 (diff)
downloadrust-a5de4eeafc3f4371205ca97685033a2ab98a66df.tar.gz
rust-a5de4eeafc3f4371205ca97685033a2ab98a66df.zip
Add `sign-ext` target feature to the WASM target
-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))];