0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-22 12:23:34 -05: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:
Cory Fields 2025-01-21 21:53:39 +00:00
parent d7f56cc5d9
commit f605f7a9c2
2 changed files with 9 additions and 8 deletions

View file

@ -235,6 +235,15 @@ include(ProcessConfigurations)
include(TryAppendCXXFlags)
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)
#[=[
This build system supports two ways to build binaries for Windows.

View file

@ -119,14 +119,6 @@ endfunction()
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.
if(MSVC)
remove_cxx_flag_from_all_configs(/DNDEBUG)