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

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 12 18:16:08 PDT 2015


It is now linking:

http://lab.llvm.org:8011/builders/sanitizer-windows/builds/8313/steps/run%20tests/logs/stdio

Kostya, was there any semantic value in the function being marked always_inline?


On 12 August 2015 at 20:22, Reid Kleckner <rnk at google.com> wrote:
> This broke the winasan tests:
> http://lab.llvm.org:8011/builders/sanitizer-windows/builds/8274
>
> The alwaysinline tweak didn't seem to fix it.
>
> On Wed, Aug 12, 2015 at 10:09 AM, Rafael Espindola via llvm-commits
> <llvm-commits at lists.llvm.org> wrote:
>>
>> 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
>
>


More information about the llvm-commits mailing list