Allow calling printInOrder from debugger

This commit is contained in:
2024-05-14 15:29:34 -07:00
parent 93021d5b28
commit 862fc3297c
2 changed files with 16 additions and 8 deletions

View File

@@ -50,10 +50,12 @@ cmake_pop_check_state()
# https://valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.clientreq
include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/third_party/valgrind)
if(APPLE)
add_link_options(-Wl,-dead_strip)
else()
add_link_options(-Wl,--gc-sections)
if(CMAKE_BUILD_TYPE STREQUAL Release)
if(APPLE)
add_link_options(-Wl,-dead_strip)
else()
add_link_options(-Wl,--gc-sections)
endif()
endif()
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")