Disable C++ exception handling on MSVC.

Total size of bin\Release on disk goes from 82.9 MB to 74.2 MB. (~10% saving)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120908 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Francois Pichet
2010-12-04 14:30:22 +00:00
parent 983839609f
commit b361452ef9
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -41,6 +41,9 @@ function(llvm_process_sources OUT_VAR)
if( NOT LLVM_REQUIRES_EH )
if( CMAKE_COMPILER_IS_GNUCXX )
add_definitions( -fno-exceptions )
elseif( MSVC )
add_definitions( /EHs-c- )
add_definitions( /D_HAS_EXCEPTIONS=0 )
endif()
endif()
if( NOT LLVM_REQUIRES_RTTI )