From 792675570476f1501bcf990cb769a396f29428ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 13 Nov 2023 13:02:11 +0100 Subject: [PATCH] Leave symbols in for Release CMake builds too --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 076c8da..0863da4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,8 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug") -O0 -fno-omit-frame-pointer ) +else() + add_compile_options(-g) endif() option(CONFIG_ASAN "Enable AddressSanitizer (ASan)" OFF)