summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-06-22 23:23:19 +0000
committerAndrew Trick <atrick@apple.com>2011-06-22 23:23:19 +0000
commit67ff0718a4c08d86f80ad68065732869d730870b (patch)
treec3e50452e360624db08297d122196189973cb871 /llvm/cmake/modules
parent835af98597f391696c1f06677704f8644fa08aae (diff)
downloadbcm5719-llvm-67ff0718a4c08d86f80ad68065732869d730870b.tar.gz
bcm5719-llvm-67ff0718a4c08d86f80ad68065732869d730870b.zip
lit support for REQUIRES: asserts.
Take #2. Don't piggyback on the existing config.build_mode. Instead, define a new lit feature for each build feature we need (currently just "asserts"). Teach both autoconf'd and cmake'd Makefiles to define this feature within test/lit.site.cfg. This doesn't require any lit harness changes and should be more robust across build systems. llvm-svn: 133664
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index e7256842617..d0427acbd5d 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -36,13 +36,8 @@ if( LLVM_ENABLE_ASSERTIONS )
# explicitly undefine it:
if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
add_definitions( -UNDEBUG )
- set(LLVM_BUILD_MODE "Release")
- else()
- set(LLVM_BUILD_MODE "Debug")
endif()
- set(LLVM_BUILD_MODE "${LLVM_BUILD_MODE}+Asserts")
else()
- set(LLVM_BUILD_MODE "Release")
if( NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
if( NOT MSVC_IDE AND NOT XCODE )
add_definitions( -DNDEBUG )
OpenPOWER on IntegriCloud