[llvm] r244767 - Use /Zc:inline when building with MSVC.

Yaron Keren via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 10:12:16 PDT 2015


Nice!

2015-08-12 20:09 GMT+03:00 Rafael Espindola via llvm-commits <
llvm-commits at lists.llvm.org>:

> Author: rafael
> Date: Wed Aug 12 12:09:25 2015
> New Revision: 244767
>
> URL: http://llvm.org/viewvc/llvm-project?rev=244767&view=rev
> Log:
> Use /Zc:inline when building with MSVC.
>
> This reduces the total .obj size when building llvm from
> 496,690,342 to 219,334,936 bytes.
>
> Modified:
>     llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
>
> Modified: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/HandleLLVMOptions.cmake?rev=244767&r1=244766&r2=244767&view=diff
>
> ==============================================================================
> --- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake (original)
> +++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake Wed Aug 12 12:09:25
> 2015
> @@ -348,6 +348,8 @@ if( MSVC )
>      append("${flag}" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
>    endforeach(flag)
>
> +  append("/Zc:inline" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
> +
>    # Disable sized deallocation if the flag is supported. MSVC fails to
> compile
>    # the operator new overload in User otherwise.
>    check_c_compiler_flag("/WX /Zc:sizedDealloc-" SUPPORTS_SIZED_DEALLOC)
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150812/aafcfe93/attachment.html>


More information about the llvm-commits mailing list