forked from OSchip/llvm-project
Added LLVM_BUILD_MODE to cmake so that lit supports tests with REQUIRES: {buildmode}.
llvm-svn: 133205
This commit is contained in:
parent
0d4f6dd01e
commit
48904e0cb7
|
@ -36,8 +36,13 @@ 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 )
|
||||
|
|
|
@ -71,7 +71,7 @@ if(PYTHONINTERP_FOUND)
|
|||
MAKE_DIRECTORY(${CMAKE_CURRENT_BINARY_DIR}/Unit)
|
||||
|
||||
# Configuration-time: See Unit/lit.site.cfg.in
|
||||
set(LLVM_BUILD_MODE "%(build_mode)s")
|
||||
set(LLVM_BUILD_MODE "${LLVM_BUILD_MODE}")
|
||||
|
||||
set(LLVM_SOURCE_DIR ${LLVM_MAIN_SRC_DIR})
|
||||
set(LLVM_BINARY_DIR ${LLVM_BINARY_DIR})
|
||||
|
|
Loading…
Reference in New Issue