[llvm-commits] [llvm] r120901 - /llvm/trunk/cmake/modules/LLVMProcessSources.cmake
Francois Pichet
pichet2000 at gmail.com
Sat Dec 4 01:42:30 PST 2010
Author: fpichet
Date: Sat Dec 4 03:42:30 2010
New Revision: 120901
URL: http://llvm.org/viewvc/llvm-project?rev=120901&view=rev
Log:
Disable RTTI on Windows.
Total size of bin\Release on disk goes from 83.6 MB to 81.8MB. (~2% saving)
Modified:
llvm/trunk/cmake/modules/LLVMProcessSources.cmake
Modified: llvm/trunk/cmake/modules/LLVMProcessSources.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMProcessSources.cmake?rev=120901&r1=120900&r2=120901&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMProcessSources.cmake (original)
+++ llvm/trunk/cmake/modules/LLVMProcessSources.cmake Sat Dec 4 03:42:30 2010
@@ -46,6 +46,8 @@
if( NOT LLVM_REQUIRES_RTTI )
if( CMAKE_COMPILER_IS_GNUCXX )
add_definitions( -fno-rtti )
+ elseif( MSVC )
+ add_definitions( /GR- )
endif()
endif()
More information about the llvm-commits
mailing list