Added a compilation flag to debug memory

This commit is contained in:
smallmodel 2023-08-19 02:19:09 +02:00
parent 843b49d56b
commit 03143d1341
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -22,6 +22,10 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
add_compile_options(-Wno-pointer-bool-conversion)
endif()
if(DEBUG_MEMORY)
add_definitions(-D_DEBUG_MEM)
endif()
IF("${TARGET_ARCH}" STREQUAL "i386")
set(TARGET_ARCH_SUFFIX "x86")
ELSE()