| ... | @@ -1091,6 +1091,11 @@ static void construct_linker_job_wasm(LinkJob *lj) { | ... | @@ -1091,6 +1091,11 @@ static void construct_linker_job_wasm(LinkJob *lj) { |
| 1091 | CodeGen *g = lj->codegen; | 1091 | CodeGen *g = lj->codegen; |
| 1092 | | 1092 | |
| 1093 | lj->args.append("-error-limit=0"); | 1093 | lj->args.append("-error-limit=0"); |
| | 1094 | |
| | 1095 | // This works around a deadlock in LLD's wasm code. |
| | 1096 | // See https://github.com/ziglang/zig/issues/2283. |
| | 1097 | lj->args.append("--no-threads"); |
| | 1098 | |
| 1094 | if (g->zig_target->os != OsWASI) { | 1099 | if (g->zig_target->os != OsWASI) { |
| 1095 | 	 lj->args.append("--no-entry"); // So lld doesn't look for _start. | 1100 | 	 lj->args.append("--no-entry"); // So lld doesn't look for _start. |
| 1096 | } | 1101 | } |