[compiler-rt] r225049 - Avoid building compiler-rt with LTO.

Alexey Samsonov vonosmas at gmail.com
Fri Jan 2 13:44:19 PST 2015


On Fri, Jan 2, 2015 at 1:38 PM, Chandler Carruth <chandlerc at google.com>
wrote:

>
> On Fri, Jan 2, 2015 at 1:34 PM, Alexey Samsonov <vonosmas at gmail.com>
> wrote:
>
>> Alright. Do you think we should fix Clang so that "clang -fno-lto foo.S"
>> doesn't print warnings?
>
>
> I mean, the warning is correct... I think it's a bit weird that we can't
> pass '-fno-lto' to the C and C++ compiles independently of the preprocessed
> asm compiles... does CMake just have no support for this? Quite unfortunate.
>

Right, we explicitly set LANGUAGE property to "C" for ASM sources for both
tsan and builtins runtimes. IIRC there were problems with CMake ASM build
system, that led to .S files dropped from the library if we don't do this.

-- 
Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150102/a6dadca6/attachment.html>


More information about the llvm-commits mailing list