mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
CMake: Avoids defining _DEBUG on MSVC Release builds. Fixes PR 4379.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
226f54b262
commit
af10910cc5
@ -65,7 +65,10 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( LLVM_ENABLE_ASSERTIONS )
|
if( LLVM_ENABLE_ASSERTIONS )
|
||||||
|
# MSVC doesn't like _DEBUG on release builds. See PR 4379.
|
||||||
|
if( NOT MSVC OR NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
|
||||||
add_definitions( -D_DEBUG )
|
add_definitions( -D_DEBUG )
|
||||||
|
endif()
|
||||||
# On Release builds cmake automatically defines NDEBUG, so we
|
# On Release builds cmake automatically defines NDEBUG, so we
|
||||||
# explicitly undefine it:
|
# explicitly undefine it:
|
||||||
if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
|
if( uppercase_CMAKE_BUILD_TYPE STREQUAL "RELEASE" )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user