[llvm-commits] [llvm] r120908 - in /llvm/trunk: CMakeLists.txt cmake/modules/LLVMProcessSources.cmake
Francois Pichet
pichet2000 at gmail.com
Sat Dec 4 06:30:23 PST 2010
Author: fpichet
Date: Sat Dec 4 08:30:22 2010
New Revision: 120908
URL: http://llvm.org/viewvc/llvm-project?rev=120908&view=rev
Log:
Disable C++ exception handling on MSVC.
Total size of bin\Release on disk goes from 82.9 MB to 74.2 MB. (~10% saving)
Modified:
llvm/trunk/CMakeLists.txt
llvm/trunk/cmake/modules/LLVMProcessSources.cmake
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=120908&r1=120907&r2=120908&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Sat Dec 4 08:30:22 2010
@@ -247,6 +247,7 @@
add_llvm_definitions( -D_SCL_SECURE_NO_DEPRECATE )
add_llvm_definitions( -wd4146 -wd4503 -wd4996 -wd4800 -wd4244 -wd4624 )
add_llvm_definitions( -wd4355 -wd4715 -wd4180 -wd4345 -wd4224 -wd4267 -wd4291 )
+ add_llvm_definitions( -wd4275)
# Suppress 'new behavior: elements of array 'array' will be default initialized'
add_llvm_definitions( -wd4351 )
Modified: llvm/trunk/cmake/modules/LLVMProcessSources.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMProcessSources.cmake?rev=120908&r1=120907&r2=120908&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMProcessSources.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMProcessSources.cmake Sat Dec 4 08:30:22 2010
@@ -41,6 +41,9 @@
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 )
More information about the llvm-commits
mailing list