From c5e64a182c0ab34eda706a3b4d1a1911886fe9e7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 24 May 2024 01:07:02 +0200 Subject: [PATCH] Do not "eliminate unused debug types". It's broken. --- cmake/config.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/config.cmake b/cmake/config.cmake index 9823764f..d7293eac 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -47,4 +47,6 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if(MOLD_LINKER) set(CMAKE_LINKER_TYPE "MOLD") endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-eliminate-unused-debug-types") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-eliminate-unused-debug-types") endif()