aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2010-12-04 09:42:30 +0000
committerFrancois Pichet <pichet2000@gmail.com>2010-12-04 09:42:30 +0000
commita785a6b5c579333fce646b0b242bb174139d4fb8 (patch)
tree63d03ef2f83ee95b22dba380cc243a0c723bf4b8 /cmake/modules
parentc24130bade8c348d0d437644b01ebdd3c65e6681 (diff)
downloadexternal_llvm-a785a6b5c579333fce646b0b242bb174139d4fb8.zip
external_llvm-a785a6b5c579333fce646b0b242bb174139d4fb8.tar.gz
external_llvm-a785a6b5c579333fce646b0b242bb174139d4fb8.tar.bz2
Disable RTTI on Windows.
Total size of bin\Release on disk goes from 83.6 MB to 81.8MB. (~2% saving) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120901 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/LLVMProcessSources.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/LLVMProcessSources.cmake b/cmake/modules/LLVMProcessSources.cmake
index a71c6f2..e8a5a94 100644
--- a/cmake/modules/LLVMProcessSources.cmake
+++ b/cmake/modules/LLVMProcessSources.cmake
@@ -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()