Skip to content

Commit 99bbe92

Browse files
committed
chore: Enable debug symbols
1 parent 16030d1 commit 99bbe92

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

cmake/ClioPackage.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/ClioVersion.cmake")
22

33
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/clio")
44
set(CPACK_PACKAGE_VERSION "${CLIO_VERSION}")
5-
set(CPACK_STRIP_FILES TRUE)
65

76
include(pkg/deb)
87
include(CPack)

cmake/Settings.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,6 @@ if (time_trace)
7979
endif ()
8080

8181
target_compile_options(clio_options INTERFACE ${COMPILER_FLAGS})
82+
83+
# Add debug symbols for all builds, including Release. This is needed to get useful stack traces in production.
84+
target_compile_options(clio_options INTERFACE -g)

tests/integration/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ target_sources(clio_integration_tests
1515
TestGlobals.cpp
1616
Main.cpp)
1717

18-
# Fix for dwarf5 bug on ci. IS STILL NEEDED???
19-
target_compile_options(clio_options INTERFACE -gdwarf-4)
20-
2118
target_include_directories(clio_integration_tests PRIVATE .)
2219
target_link_libraries(clio_integration_tests PUBLIC clio_testing_common PRIVATE Boost::program_options)
2320
set_target_properties(clio_integration_tests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

tests/unit/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,6 @@ target_sources(clio_tests
222222
# See https://github.com/google/googletest/issues/3475
223223
gtest_discover_tests(clio_tests DISCOVERY_TIMEOUT 90)
224224

225-
# Fix for dwarf5 bug on ci
226-
target_compile_options(clio_options INTERFACE -gdwarf-4)
227-
228225
target_include_directories(clio_tests PRIVATE .)
229226
target_link_libraries(clio_tests PUBLIC clio_testing_common PRIVATE spdlog::spdlog)
230227
set_target_properties(clio_tests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

0 commit comments

Comments
 (0)