From a2db10d7302c8d4e663673ee9ca5480afc705960 Mon Sep 17 00:00:00 2001 From: Dennis Felsing Date: Fri, 18 Feb 2022 11:53:25 +0100 Subject: [PATCH] Set -fno-omit-frame-pointer --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 68318bb74..682b4d9b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,6 +221,10 @@ if(NOT MSVC AND NOT HAIKU) if(EXCEPTION_HANDLING) add_c_compiler_flag_if_supported(OUR_FLAGS -DCONF_EXCEPTION_HANDLING) + # use the frame pointer (frame pointer usage is disabled by default in + # some architectures like x86_64 and for some optimization levels; and it + # may be impossible to walk the call stack without it) + add_c_compiler_flag_if_supported(OUR_FLAGS -fno-omit-frame-pointer) endif() add_c_compiler_flag_if_supported(OUR_FLAGS_OWN -Wall)