<div dir="rtl"><div dir="ltr">Nice!</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-08-12 20:09 GMT+03:00 Rafael Espindola via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rafael<br>
Date: Wed Aug 12 12:09:25 2015<br>
New Revision: 244767<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=244767&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=244767&view=rev</a><br>
Log:<br>
Use /Zc:inline when building with MSVC.<br>
<br>
This reduces the total .obj size when building llvm from<br>
496,690,342 to 219,334,936 bytes.<br>
<br>
Modified:<br>
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake<br>
<br>
Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=244767&r1=244766&r2=244767&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=244767&r1=244766&r2=244767&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)<br>
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Wed Aug 12 12:09:25 2015<br>
@@ -348,6 +348,8 @@ if( MSVC )<br>
append("${flag}" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)<br>
endforeach(flag)<br>
<br>
+ append("/Zc:inline" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)<br>
+<br>
# Disable sized deallocation if the flag is supported. MSVC fails to compile<br>
# the operator new overload in User otherwise.<br>
check_c_compiler_flag("/WX /Zc:sizedDealloc-" SUPPORTS_SIZED_DEALLOC)<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>