Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
enable debug info for clang (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
bright-starry-sky authored Jun 15, 2020
1 parent 3315d04 commit 5cbe1cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5cbe1cc

Please sign in to comment.