diff options
author | Martin Storsjö <martin@martin.st> | 2020-05-31 00:05:13 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2020-06-17 09:37:07 +0300 |
commit | beeed368b60252178f66ab117d8a96ecdc35f60e (patch) | |
tree | 5c6dfa297b685b7ae4c204288789b516f5dc02f4 /llvm/lib/Support/Program.cpp | |
parent | ccbd7e8d463a1d40852c6acbbecd3ae1e2c38f4c (diff) | |
download | llvm-beeed368b60252178f66ab117d8a96ecdc35f60e.zip llvm-beeed368b60252178f66ab117d8a96ecdc35f60e.tar.gz llvm-beeed368b60252178f66ab117d8a96ecdc35f60e.tar.bz2 |
[clang] [MinGW] Link kernel32 once after the last instance of msvcrt
The msvcrt library isn't a pure import library; it does contain
regular object files with wrappers/fallbacks, and these can require
linking against kernel32.
This only makes a difference when linking with ld.bfd, as lld
always searches all static libraries.
This matches a similar change made recently in gcc in
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=850533ab160ef40eccfd039e1e3b138cf26e76b8,
although clang adds --start-group --end-group around these libraries
if -static is specified, which gcc doesn't. But try to match gcc's
linking order in any case, for consistency.
Differential Revision: https://reviews.llvm.org/D80880
Diffstat (limited to 'llvm/lib/Support/Program.cpp')
0 files changed, 0 insertions, 0 deletions