[PATCH] D108881: [clang][driver] Honor the last -flto= flag even if an earlier -flto is present

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 29 21:52:14 PDT 2021


tbaeder added a comment.

That code has changed quite a bit since I've worked on it.

The only problem I could see is that passing `-flto=thin -flto` and choosing thin LTO kinda makes sense if you interpret `-flto` as just "use LTO". The `-flto=thin` is more specific, so it could make sense to pick that. But that's just something I wonder while looking at it. Not sure if we process other options like this by just choosing the last one.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108881/new/

https://reviews.llvm.org/D108881



More information about the cfe-commits mailing list