mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 16:35:10 +00:00
Added LLVM_BUILD_MODE to cmake so that lit supports tests with REQUIRES: {buildmode}.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa796dd720
commit
dc9c76aca6
@ -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…
x
Reference in New Issue
Block a user