Skip to content

Commit

Permalink
Move debug dump constants to quickjs.h and add ENABLE_DUMPS option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmbernardi committed Dec 27, 2024
1 parent 4822912 commit 39c3a13
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 133 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ xoption(CONFIG_ASAN "Enable AddressSanitizer (ASan)" OFF)
xoption(CONFIG_MSAN "Enable MemorySanitizer (MSan)" OFF)
xoption(CONFIG_TSAN "Enable ThreadSanitizer (TSan)" OFF)
xoption(CONFIG_UBSAN "Enable UndefinedBehaviorSanitizer (UBSan)" OFF)
if(CMAKE_BUILD_TYPE MATCHES "Debug")
xoption(ENABLE_DUMPS "Enable Dumps" ON)
else()
xoption(ENABLE_DUMPS "Enable Dumps" OFF)
endif()

if(CONFIG_ASAN)
message(STATUS "Building with ASan")
Expand Down
Loading

0 comments on commit 39c3a13

Please sign in to comment.