]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/llvm_util.rs
Auto merge of #55650 - nikic:funnel-shift, r=nagisa
[rust.git] / src / librustc_codegen_llvm / llvm_util.rs
index 126b19c0c83fa8f3db40e8e7980a5ef28a753dc8..eaa599e0cd0fa67f8382eda55fe7575f9aadf9ad 100644 (file)
@@ -243,7 +243,8 @@ pub fn target_feature_whitelist(sess: &Session)
         "hexagon" => HEXAGON_WHITELIST,
         "mips" | "mips64" => MIPS_WHITELIST,
         "powerpc" | "powerpc64" => POWERPC_WHITELIST,
-        "wasm32" => WASM_WHITELIST,
+        // wasm32 on emscripten does not support these target features
+        "wasm32" if !sess.target.target.options.is_like_emscripten => WASM_WHITELIST,
         _ => &[],
     }
 }