From 8ef7a5cd9e728e8fa366e1f90a069c52bd92ae2a Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Tue, 19 Aug 2025 06:19:32 +0300 Subject: [PATCH] spec: Reduce debuginfo level "Level 1 produces minimal information, enough for making backtraces in parts of the program that you don't plan to debug. This includes descriptions of functions and external variables, and line number tables, but no information about local variables." -- gcc(1) Signed-off-by: Vitaly Chikunov --- .gear/llama.cpp.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/.gear/llama.cpp.spec b/.gear/llama.cpp.spec index bd89cf31d..8f4b6acc7 100644 --- a/.gear/llama.cpp.spec +++ b/.gear/llama.cpp.spec @@ -152,6 +152,7 @@ sed -i 's/common_has_curl()/0/' tests/test-arg-parser.cpp sed /test-thread-safety/d -i tests/CMakeLists.txt %build +%define optflags_debug -g1 # Unless -DCMAKE_SKIP_BUILD_RPATH=yes CMake fails to strip build time RPATH # from (installed) binaries. export NVCC_PREPEND_FLAGS=-ccbin=g++-12