| ... | ... | @@ -1832,6 +1832,10 @@ fn linkWithLLD(coff: *Coff, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: |
| 1832 | 1832 | const linker_command = "lld-link"; |
| 1833 | 1833 | try argv.appendSlice(&[_][]const u8{ comp.self_exe_path.?, linker_command }); |
| 1834 | 1834 | |
| 1835 | if (target.isMinGW()) { |
| 1836 | try argv.append("-lldmingw"); |
| 1837 | } |
| 1838 | |
| 1835 | 1839 | try argv.append("-ERRORLIMIT:0"); |
| 1836 | 1840 | try argv.append("-NOLOGO"); |
| 1837 | 1841 | if (comp.config.debug_format != .strip) { |
| ... | ... | @@ -2053,8 +2057,6 @@ fn linkWithLLD(coff: *Coff, arena: Allocator, tid: Zcu.PerThread.Id, prog_node: |
| 2053 | 2057 | .win32 => { |
| 2054 | 2058 | if (link_in_crt) { |
| 2055 | 2059 | if (target.abi.isGnu()) { |
| 2056 | | try argv.append("-lldmingw"); |
| 2057 | | |
| 2058 | 2060 | if (target.cpu.arch == .x86) { |
| 2059 | 2061 | try argv.append("-ALTERNATENAME:__image_base__=___ImageBase"); |
| 2060 | 2062 | } else { |