disable threads when linking WebAssembly to work around an LLD bug
See #2283
This commit is contained in:
parent
579dd74114
commit
6692cbbe18
|
@ -1091,6 +1091,11 @@ static void construct_linker_job_wasm(LinkJob *lj) {
|
||||||
CodeGen *g = lj->codegen;
|
CodeGen *g = lj->codegen;
|
||||||
|
|
||||||
lj->args.append("-error-limit=0");
|
lj->args.append("-error-limit=0");
|
||||||
|
|
||||||
|
// This works around a deadlock in LLD's wasm code.
|
||||||
|
// See https://github.com/ziglang/zig/issues/2283.
|
||||||
|
lj->args.append("--no-threads");
|
||||||
|
|
||||||
if (g->zig_target->os != OsWASI) {
|
if (g->zig_target->os != OsWASI) {
|
||||||
lj->args.append("--no-entry"); // So lld doesn't look for _start.
|
lj->args.append("--no-entry"); // So lld doesn't look for _start.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user