Skip to content

Commit 628032b

Browse files
committed
Move debug dump constants to quickjs.h and add ENABLE_DUMPS option
1 parent 4822912 commit 628032b

File tree

3 files changed

+126
-132
lines changed

3 files changed

+126
-132
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ xoption(CONFIG_ASAN "Enable AddressSanitizer (ASan)" OFF)
120120
xoption(CONFIG_MSAN "Enable MemorySanitizer (MSan)" OFF)
121121
xoption(CONFIG_TSAN "Enable ThreadSanitizer (TSan)" OFF)
122122
xoption(CONFIG_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan)" OFF)
123+
if(CMAKE_BUILD_TYPE MATCHES "Debug")
124+
xoption(ENABLE_DUMPS "Enable Dumps" ON)
125+
else()
126+
xoption(ENABLE_DUMPS "Enable Dumps" OFF)
127+
endif()
123128

124129
if(CONFIG_ASAN)
125130
message(STATUS "Building with ASan")

0 commit comments

Comments
 (0)