[patch] Avoid building compiler-rt with LTO
Rafael EspĂndola
rafael.espindola at gmail.com
Wed Dec 31 10:22:26 PST 2014
On 29 December 2014 at 20:42, Alexey Samsonov <samsonov at google.com> wrote:
> 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?
Just pass -flto.
>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).
A added the flag as committed as r225049.
Cheers,
Rafael
More information about the llvm-commits
mailing list