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()