summaryrefslogtreecommitdiffstats
path: root/llvm/cmake
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
commit916fae2a342cdda804ab1b1820430b17ff78147c (patch)
tree6d334ba7cb17d7c02059d49bdfbe00250d16fe59 /llvm/cmake
parentd583da04d09729aee882b3a7551325d311aac677 (diff)
downloadbcm5719-llvm-916fae2a342cdda804ab1b1820430b17ff78147c.tar.gz
bcm5719-llvm-916fae2a342cdda804ab1b1820430b17ff78147c.zip
Disable RTTI on Windows.
Total size of bin\Release on disk goes from 83.6 MB to 81.8MB. (~2% saving) llvm-svn: 120901
Diffstat (limited to 'llvm/cmake')
-rw-r--r--llvm/cmake/modules/LLVMProcessSources.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/cmake/modules/LLVMProcessSources.cmake b/llvm/cmake/modules/LLVMProcessSources.cmake
index a71c6f2af83..e8a5a9431a2 100644
--- a/llvm/cmake/modules/LLVMProcessSources.cmake
+++ b/llvm/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()
OpenPOWER on IntegriCloud