mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-25 17:11:21 +02:00
build: refactor: set debug definitions in main CMakeLists
No functional change. This is a simple move required the next commit.
This commit is contained in:
@@ -235,6 +235,15 @@ include(ProcessConfigurations)
|
|||||||
include(TryAppendCXXFlags)
|
include(TryAppendCXXFlags)
|
||||||
include(TryAppendLinkerFlag)
|
include(TryAppendLinkerFlag)
|
||||||
|
|
||||||
|
# Redefine/adjust per-configuration flags.
|
||||||
|
target_compile_definitions(core_interface_debug INTERFACE
|
||||||
|
DEBUG
|
||||||
|
DEBUG_LOCKORDER
|
||||||
|
DEBUG_LOCKCONTENTION
|
||||||
|
RPC_DOC_CHECK
|
||||||
|
ABORT_ON_FAILED_ASSUME
|
||||||
|
)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
#[=[
|
#[=[
|
||||||
This build system supports two ways to build binaries for Windows.
|
This build system supports two ways to build binaries for Windows.
|
||||||
|
@@ -119,14 +119,6 @@ endfunction()
|
|||||||
|
|
||||||
set_default_config(RelWithDebInfo)
|
set_default_config(RelWithDebInfo)
|
||||||
|
|
||||||
# Redefine/adjust per-configuration flags.
|
|
||||||
target_compile_definitions(core_interface_debug INTERFACE
|
|
||||||
DEBUG
|
|
||||||
DEBUG_LOCKORDER
|
|
||||||
DEBUG_LOCKCONTENTION
|
|
||||||
RPC_DOC_CHECK
|
|
||||||
ABORT_ON_FAILED_ASSUME
|
|
||||||
)
|
|
||||||
# We leave assertions on.
|
# We leave assertions on.
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
remove_cxx_flag_from_all_configs(/DNDEBUG)
|
remove_cxx_flag_from_all_configs(/DNDEBUG)
|
||||||
|
Reference in New Issue
Block a user