projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c24130b
)
Disable RTTI on Windows.
author
Francois Pichet
<pichet2000@gmail.com>
Sat, 4 Dec 2010 09:42:30 +0000
(09:42 +0000)
committer
Francois Pichet
<pichet2000@gmail.com>
Sat, 4 Dec 2010 09:42:30 +0000
(09:42 +0000)
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
cmake/modules/LLVMProcessSources.cmake
patch
|
blob
|
history
diff --git
a/cmake/modules/LLVMProcessSources.cmake
b/cmake/modules/LLVMProcessSources.cmake
index a71c6f2af839f9571832234084230cdb1ab30a4a..e8a5a9431a26d3fbfe53bab1341da4a61b45effc 100644
(file)
--- 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 )
if( NOT LLVM_REQUIRES_RTTI )
if( CMAKE_COMPILER_IS_GNUCXX )
add_definitions( -fno-rtti )
+ elseif( MSVC )
+ add_definitions( /GR- )
endif()
endif()
endif()
endif()