| ... | ... | @@ -192,6 +192,8 @@ static Buf *get_dynamic_linker_path(CodeGen *g) { |
| 192 | 192 | static void construct_linker_job_elf(LinkJob *lj) { |
| 193 | 193 | CodeGen *g = lj->codegen; |
| 194 | 194 | |
| 195 | lj->args.append("-error-limit=0"); |
| 196 | |
| 195 | 197 | if (g->libc_link_lib != nullptr) { |
| 196 | 198 | find_libc_lib_path(g); |
| 197 | 199 | } |
| ... | ... | @@ -381,6 +383,7 @@ static void construct_linker_job_elf(LinkJob *lj) { |
| 381 | 383 | static void construct_linker_job_wasm(LinkJob *lj) { |
| 382 | 384 | CodeGen *g = lj->codegen; |
| 383 | 385 | |
| 386 | lj->args.append("-error-limit=0"); |
| 384 | 387 | lj->args.append("--no-entry"); // So lld doesn't look for _start. |
| 385 | 388 | lj->args.append("-o"); |
| 386 | 389 | lj->args.append(buf_ptr(&g->output_file_path)); |
| ... | ... | @@ -419,6 +422,8 @@ static bool zig_lld_link(ZigLLVM_ObjectFormatType oformat, const char **args, si |
| 419 | 422 | static void construct_linker_job_coff(LinkJob *lj) { |
| 420 | 423 | CodeGen *g = lj->codegen; |
| 421 | 424 | |
| 425 | lj->args.append("/ERRORLIMIT:0"); |
| 426 | |
| 422 | 427 | if (g->libc_link_lib != nullptr) { |
| 423 | 428 | find_libc_lib_path(g); |
| 424 | 429 | } |
| ... | ... | @@ -755,6 +760,7 @@ static bool darwin_version_lt(DarwinPlatform *platform, int major, int minor) { |
| 755 | 760 | static void construct_linker_job_macho(LinkJob *lj) { |
| 756 | 761 | CodeGen *g = lj->codegen; |
| 757 | 762 | |
| 763 | lj->args.append("-error-limit=0"); |
| 758 | 764 | lj->args.append("-demangle"); |
| 759 | 765 | |
| 760 | 766 | if (g->linker_rdynamic) { |
| ... | ... | @@ -969,7 +975,6 @@ void codegen_link(CodeGen *g) { |
| 969 | 975 | |
| 970 | 976 | lj.link_in_crt = (g->libc_link_lib != nullptr && g->out_type == OutTypeExe); |
| 971 | 977 | |
| 972 | | lj.args.append("-error-limit=0"); |
| 973 | 978 | construct_linker_job(&lj); |
| 974 | 979 | |
| 975 | 980 | |