[PATCH] D102479: [clang][driver] Treat unkonwn -flto= values as -flto

Steven Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 18 09:48:50 PDT 2021


steven_wu added a comment.

I don't think current implementation is the best idea. I think is better to make the gcc compatible LTO value to be a clang Driver only option, give them an option name, and handle them separately in driver to invoke correct fullLTO cc1 command, so that:

- The value remain invalid option for cc1 (CompilerInvocation should just error on that, just like now).
- The ignored value should not appear in the help or autocompletion.


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

https://reviews.llvm.org/D102479



More information about the cfe-commits mailing list