about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-04 22:21:05 +0000
committerbors <bors@rust-lang.org>2020-08-04 22:21:05 +0000
commit07f1fdecfed85fe4be14b293eb913560a6cd60ba (patch)
tree5aeac3ec87422d843dbd36c01c56e0f593842e88 /src
parentf9d422ea78a4652c5d9ecd6b6d7577bdfbfd98a8 (diff)
parent1a3e4d81406c700d90d6d482163b60c5efc18505 (diff)
downloadrust-07f1fdecfed85fe4be14b293eb913560a6cd60ba.tar.gz
rust-07f1fdecfed85fe4be14b293eb913560a6cd60ba.zip
Auto merge of #75161 - sunfishcode:wasm-no-threads, r=alexcrichton
Remove the `--no-threads` workaround for wasm targets.

Remove `--no-threads` from the wasm-ld command-line, which was a
workaround for [an old bug] which was fixed in LLVM 9.0, and is
no longer needed.

Also, the `--no-threads` option has been [removed upstream].

[an old bug]: https://bugs.llvm.org/show_bug.cgi?id=41508
[removed upstream]: https://reviews.llvm.org/D76885

r? @alexcrichton
Diffstat (limited to 'src')
-rw-r--r--src/librustc_target/spec/wasm32_base.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/librustc_target/spec/wasm32_base.rs b/src/librustc_target/spec/wasm32_base.rs
index 8423573b52d..62fc8f06183 100644
--- a/src/librustc_target/spec/wasm32_base.rs
+++ b/src/librustc_target/spec/wasm32_base.rs
@@ -10,13 +10,6 @@ pub fn options() -> TargetOptions {
         clang_args.push(format!("-Wl,{}", arg));
     };
 
-    // There have been reports in the wild (rustwasm/wasm-bindgen#119) of
-    // using threads causing weird hangs and bugs. Disable it entirely as
-    // this isn't yet the bottleneck of compilation at all anyway.
-    //
-    // FIXME: we should file an upstream issue with LLD about this
-    arg("--no-threads");
-
     // By default LLD only gives us one page of stack (64k) which is a
     // little small. Default to a larger stack closer to other PC platforms
     // (1MB) and users can always inject their own link-args to override this.