[patch] Avoid building compiler-rt with LTO
Alexey Samsonov
samsonov at google.com
Mon Dec 29 17:42:50 PST 2014
How do you build with LTO? Do you just pass "-flto" in CMAKE_C_FLAGS /
CMAKE_CXX_FLAGS, or there's a special CMake variable for that? In the
former case, this patch is OK (although, it's better to check for flag
existence by introducing COMPILER_RT_HAS_FNO_LTO_FLAG).
On Mon, Dec 29, 2014 at 5:32 PM, Rafael EspĂndola <
rafael.espindola at gmail.com> wrote:
> I normally bootstrap clang with LTO, and I have used this patch for
> some time to avoid getting a .a with IR in it.
>
> Do you think it is generically useful?
>
> Cheers,
> Rafael
>
--
Alexey Samsonov, Mountain View, CA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141229/b57f7442/attachment.html>
More information about the llvm-commits
mailing list