Add support for cmake -DDEBUG_LEAKS=1
(#230)
I want to do a Release build (so that assert is disabled), but still log leaks. This adds the option to enable that through CMake.
This commit is contained in:
parent
f94fbe2f8a
commit
119f2c1b4c
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ endif()
|
||||||
|
|
||||||
add_library(qjs ${qjs_sources})
|
add_library(qjs ${qjs_sources})
|
||||||
target_compile_definitions(qjs PRIVATE ${qjs_defines})
|
target_compile_definitions(qjs PRIVATE ${qjs_defines})
|
||||||
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
if (CMAKE_BUILD_TYPE MATCHES Debug OR DUMP_LEAKS)
|
||||||
target_compile_definitions(qjs PRIVATE
|
target_compile_definitions(qjs PRIVATE
|
||||||
DUMP_LEAKS
|
DUMP_LEAKS
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue