From 3fd873d263555dfec53493bcc368a65f15989bca Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Mon, 20 Nov 2023 02:59:54 +0300 Subject: [PATCH] Add -fno-omit-frame-pointer by default --- src/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6c62a41a..43dec506 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,9 +17,10 @@ if("${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/local/?$") endif() add_definitions(-DVERSION="1.2.0") -add_definitions(-Wall -Wno-sign-compare -Wno-comment -Wno-parentheses -Wno-pointer-arith -fdiagnostics-color=always -I ${CMAKE_SOURCE_DIR}/src) +add_definitions(-Wall -Wno-sign-compare -Wno-comment -Wno-parentheses -Wno-pointer-arith -fdiagnostics-color=always -fno-omit-frame-pointer -I ${CMAKE_SOURCE_DIR}/src) +add_link_options(-fno-omit-frame-pointer) if (${WITH_ASAN}) - add_definitions(-fsanitize=address -fno-omit-frame-pointer) + add_definitions(-fsanitize=address) add_link_options(-fsanitize=address -fno-omit-frame-pointer) endif (${WITH_ASAN})