[PATCH] D36227: [ELF] - LTO: Try to be option compatible with the gold plugin.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 01:06:29 PDT 2017


>> If I do that then mix of options will work incorrectly, example:
>>
>> `ld.lld --lto-O0 --plugin-opt=O6 ...`
>>
>> will set optimization level 0 instead of 6
>
>Do we have to worry about that? --plugin-opt is likely to only show up
>in Makefiles that are using gold and those will not have lld options.
>
>I would probably just give preference to lld options over --plugin-opt*
>options.
>
>Cheers,
>Rafael

I see. But should we warn/error out then if both ways are mixed in command line ?

George.


More information about the llvm-commits mailing list