Rollup merge of #50251 - alexcrichton:wasm-no-threads, r=eddyb
rustc: Disable threads in LLD for wasm Upstream bug reports (rustwasm/wasm-bindgen#119) show that this may be the culprit of odd crashes/hangs. The linker is a tiny fraction of build time anyway right now so let's disable it and figure out how to possibly reenable it later if necessary.
This commit is contained in:
commit
1c1fd2758e
1 changed files with 5 additions and 1 deletions
|
@ -959,7 +959,11 @@ impl Linker for WasmLd {
|
|||
}
|
||||
|
||||
fn finalize(&mut self) -> Command {
|
||||
self.cmd.arg("--threads");
|
||||
// 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.
|
||||
self.cmd.arg("--no-threads");
|
||||
|
||||
self.cmd.arg("-z").arg("stack-size=1048576");
|
||||
|
||||
// FIXME we probably shouldn't pass this but instead pass an explicit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue