aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/ir.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-29 14:46:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-29 14:48:12 -0700
commit0da7c4b0c8a2a2fe0862f7757bc5976342d51dc8 (patch)
treea009c84f49be7b52e13964014222cb960915d136 /src/stage1/ir.cpp
parent7c0ee423859739b5484de8de867006ead787fb66 (diff)
downloadzig-0da7c4b0c8a2a2fe0862f7757bc5976342d51dc8.tar.gz
zig-0da7c4b0c8a2a2fe0862f7757bc5976342d51dc8.zip
improve stage2 COFF LLD linking
* change some {} to be {s} to gain type safety * fix libraries being libfoo.lib instead of foo.lib for COFF * when linking mingw-w64, add the "always link" libs so that we generate DLL import .lib files for them as the linker code relies on. * COFF LLD linker does not support -r so we do a file copy as an alternative to the -r thing that ELF linking does. I will file an issue for the corresponding TODO upon merging this branch, to look into an optimization that possibly elides this copy when the source and destination are both cache directories. * add a CLI error message when trying to link multiple objects into one and using COFF object format.
Diffstat (limited to 'src/stage1/ir.cpp')
0 files changed, 0 insertions, 0 deletions