about summary refs log tree commit diff
path: root/library/compiler-builtins/build.rs
diff options
context:
space:
mode:
authortrevyn <230691+trevyn@users.noreply.github.com>2024-01-09 01:23:59 +0400
committertrevyn <230691+trevyn@users.noreply.github.com>2024-01-09 02:11:00 +0400
commit0808cdeb67fa5e0ec24c381e0164eee021b5b1b0 (patch)
treecb66c8a4eb0f9b2679ad9ef6da53e66cad444e7c /library/compiler-builtins/build.rs
parent72dbe301ff7ebf19fc01dc790973bc24d8742347 (diff)
downloadrust-0808cdeb67fa5e0ec24c381e0164eee021b5b1b0.tar.gz
rust-0808cdeb67fa5e0ec24c381e0164eee021b5b1b0.zip
build: Allow building C compiler-rt fallbacks for wasm
Diffstat (limited to 'library/compiler-builtins/build.rs')
-rw-r--r--library/compiler-builtins/build.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/library/compiler-builtins/build.rs b/library/compiler-builtins/build.rs
index 0486116778c..9bf6a254724 100644
--- a/library/compiler-builtins/build.rs
+++ b/library/compiler-builtins/build.rs
@@ -56,15 +56,10 @@ fn main() {
     if !cfg!(feature = "mangled-names") && cfg!(feature = "c") {
         // Don't use a C compiler for these targets:
         //
-        // * wasm - clang for wasm is somewhat hard to come by and it's
-        //   unlikely that the C is really that much better than our own Rust.
         // * nvptx - everything is bitcode, not compatible with mixed C/Rust
         // * riscv - the rust-lang/rust distribution container doesn't have a C
         //   compiler.
-        if !target.contains("wasm")
-            && !target.contains("nvptx")
-            && (!target.starts_with("riscv") || target.contains("xous"))
-        {
+        if !target.contains("nvptx") && (!target.starts_with("riscv") || target.contains("xous")) {
             #[cfg(feature = "c")]
             c::compile(&llvm_target, &target);
         }