[PATCH] D158412: [LLD] [MinGW] Pass LLVM specific LTO options through to lld-link

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 21 15:01:32 PDT 2023


MaskRay accepted this revision.
MaskRay added a comment.
This revision is now accepted and ready to land.

Consider linking to D78158 <https://reviews.llvm.org/D78158> in the summary for more context.



================
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
----------------
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")`


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