<div dir="ltr">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).</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 29, 2014 at 5:32 PM, Rafael EspĂndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I normally bootstrap clang with LTO, and I have used this patch for<br>
some time to avoid getting a .a with IR in it.<br>
<br>
Do you think it is generically useful?<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Alexey Samsonov, Mountain View, CA</div></div></div>
</div>