[PATCH] D79818: [lld] Support size levels with (Thin)LTO
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 15:16:54 PDT 2020
MaskRay added a comment.
@mehdi_amini @pcc @tejohnson
I just saw another issue saying that `clang -Os -flto=thin a.c` does not work https://bugs.llvm.org/show_bug.cgi?id=45913 (+ @manojgupta)
I marked it as yet another duplicate of PR42445
For -Os, clang driver passes -plugin-opt=Os (https://github.com/llvm/llvm-project/blob/master/clang/lib/Driver/ToolChains/CommonArgs.cpp#L402) but neither LLVMgold.so nor LLD recognizes `-plugin-opt=Os`.
-Oz is similar. What is the concrete suggestion here? For quick reference, the `-plugin-opt=O` logic was added by rL256146 <https://reviews.llvm.org/rL256146>.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79818/new/
https://reviews.llvm.org/D79818
More information about the llvm-commits
mailing list