[PATCH] D158412: [LLD] [MinGW] Pass LLVM specific LTO options through to lld-link
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 22 00:28:56 PDT 2023
mstorsjo added a comment.
In D158412#4604933 <https://reviews.llvm.org/D158412#4604933>, @MaskRay wrote:
> Consider linking to D78158 <https://reviews.llvm.org/D78158> in the summary for more context.
Thanks for the reference, I'll include that!
================
Comment at: lld/test/MinGW/driver.test:380
+
+RUN: ld.lld -### foo.o -m i386pep -plugin /usr/lib/gcc/x86_64-w64-mingw32/10-posix/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-w64-mingw32/10-posix/lto-wrapper -plugin-opt=-fresolution=/tmp/ccM9d4fP.res -plugin-opt=-pass-through=-lmingw32
----------------
MaskRay wrote:
> Test that we ignore `-plugin-opt=...lto-wrapper.exe` as well. If lto-wrapper.exe is not present, remove the special case `!v.ends_with("lto-wrapper.exe")`
Ok, I'll include a sample with what it looks like on Windows as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158412/new/
https://reviews.llvm.org/D158412
More information about the llvm-commits
mailing list