[PATCH] D158887: [LLD] [MinGW] Hook up more LTO options

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 14:01:01 PDT 2023


mstorsjo created this revision.
mstorsjo added a reviewer: MaskRay.
Herald added a subscriber: inglorion.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a project: LLVM.

Many of these options can be passed to the linker by the Clang
driver based on other options passed to Clang, after
a23bf1786be7c0738a4cf999c2957155bb32d5af <https://reviews.llvm.org/rGa23bf1786be7c0738a4cf999c2957155bb32d5af>. Before commit
5c92c9f34a7dba804479acef62c576d1a170ef1f <https://reviews.llvm.org/rG5c92c9f34a7dba804479acef62c576d1a170ef1f>, these were ignored by
lld, but now we're erroring out on the unrecognized options.

The ELF linker has even more LTO options available, but not
all of these are currently settable via the lld-link option
interface, and some aren't set automatically by Clang but only
if the user manually passes them - and thus probably aren't in
wide use so far. (Previously LLD/MinGW would have accepted them
silently but ignored them though.)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158887

Files:
  lld/MinGW/Driver.cpp
  lld/MinGW/Options.td
  lld/test/MinGW/driver.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158887.553614.patch
Type: text/x-patch
Size: 6271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230825/8444e76f/attachment.bin>


More information about the llvm-commits mailing list