mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
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. llvm-svn: 244767
This commit is contained in:
parent
e35d0332ef
commit
340e0df2ed
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user