diff options
author | Filipe Cabecinhas <me@filcab.net> | 2016-04-29 15:22:48 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2016-04-29 15:22:48 +0000 |
commit | 0da993751775f53c57bc9100b152626a8b380dfb (patch) | |
tree | 00ebc346d265d804fb408ef1ff333691225ca188 /llvm/cmake | |
parent | fee94ff8a996050547b0ba8cce2cda730b304b8f (diff) | |
download | bcm5719-llvm-0da993751775f53c57bc9100b152626a8b380dfb.tar.gz bcm5719-llvm-0da993751775f53c57bc9100b152626a8b380dfb.zip |
Unify XDEBUG and EXPENSIVE_CHECKS (into the latter), and add an option to the cmake build to enable them.
Summary:
Historically, we had a switch in the Makefiles for turning on "expensive
checks". This has never been ported to the cmake build, but the
(dead-ish) code is still around.
This will also make it easier to turn it on in buildbots.
Reviewers: chandlerc
Subscribers: jyknight, mzolotukhin, RKSimon, gberry, llvm-commits
Differential Revision: http://reviews.llvm.org/D19723
llvm-svn: 268050
Diffstat (limited to 'llvm/cmake')
-rw-r--r-- | llvm/cmake/modules/HandleLLVMOptions.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake index cc945e1e0cc..c41a0bb4228 100644 --- a/llvm/cmake/modules/HandleLLVMOptions.cmake +++ b/llvm/cmake/modules/HandleLLVMOptions.cmake @@ -44,6 +44,11 @@ if( LLVM_ENABLE_ASSERTIONS ) endif() endif() +if(LLVM_ENABLE_EXPENSIVE_CHECKS) + add_definitions(-DEXPENSIVE_CHECKS) + add_definitions(-D_GLIBCXX_DEBUG) +endif() + string(TOUPPER "${LLVM_ABI_BREAKING_CHECKS}" uppercase_LLVM_ABI_BREAKING_CHECKS) if( uppercase_LLVM_ABI_BREAKING_CHECKS STREQUAL "WITH_ASSERTS" ) |