forked from OSchip/llvm-project
Disable RTTI on Windows.
Total size of bin\Release on disk goes from 83.6 MB to 81.8MB. (~2% saving) llvm-svn: 120901
This commit is contained in:
parent
d583da04d0
commit
916fae2a34
|
@ -46,6 +46,8 @@ function(llvm_process_sources OUT_VAR)
|
|||
if( NOT LLVM_REQUIRES_RTTI )
|
||||
if( CMAKE_COMPILER_IS_GNUCXX )
|
||||
add_definitions( -fno-rtti )
|
||||
elseif( MSVC )
|
||||
add_definitions( /GR- )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue