From 483eb8d3c9e46cc11999133fe4f1220e7a9ad12a Mon Sep 17 00:00:00 2001 From: bright-starry-sky Date: Fri, 12 Jun 2020 13:25:55 +0800 Subject: [PATCH] enable debug info for clang --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4702626cc..2962cee7a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -251,6 +251,9 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") add_compile_options(-Wno-self-assign-overloaded) add_compile_options(-Wno-self-move) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -latomic") + if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") + add_compile_options(-fno-limit-debug-info) + endif() endif() include(CheckCXXCompilerFlag)