This revision was automatically updated to reflect the committed changes.
Closed by commit rL344412: [MinGW] Allow using LTO when lld is used as linker
(authored by mstorsjo, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D53195?vs=169
mstorsjo added inline comments.
Comment at: lib/Driver/ToolChains/MinGW.cpp:383
+ Args.getLastArgValue(options::OPT_fuse_ld_EQ, CLANG_DEFAULT_LINKER)
+ .equals_lower("lld");
}
rnk wrote:
> I thought we supported putting paths in this option, but I
rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.
lgtm
Comment at: lib/Driver/ToolChains/MinGW.cpp:383
+ Args.getLastArgValue(options::OPT_fuse_ld_EQ, CLANG_DEFAULT_LINKER)
+ .equals_lower("lld");
}
mstorsjo updated this revision to Diff 169387.
mstorsjo added a comment.
Herald added subscribers: steven_wu, mehdi_amini.
Added a minimal testcase.
https://reviews.llvm.org/D53195
Files:
lib/Driver/ToolChains/MinGW.cpp
lib/Driver/ToolChains/MinGW.h
test/Driver/mingw-lto.c
Index: test/D
mstorsjo created this revision.
mstorsjo added reviewers: rnk, ruiu, smeenai, compnerd.
Herald added subscribers: dexonsmith, inglorion.
Repository:
rC Clang
https://reviews.llvm.org/D53195
Files:
lib/Driver/ToolChains/MinGW.cpp
lib/Driver/ToolChains/MinGW.h
Index: lib/Driver/ToolChains/