disable -gcodeview
a bug in GCC prevents it from being used. I will be reporting this soon.
This commit is contained in:
parent
5a65bad90e
commit
b55ff55943
1 changed files with 1 additions and 9 deletions
|
|
@ -1138,15 +1138,7 @@ if (USE_BACKWARD)
|
|||
list(APPEND USED_SOURCES src/backtrace.cpp)
|
||||
if (WIN32)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
include(CheckCXXCompilerFlag)
|
||||
check_cxx_compiler_flag(-gcodeview GCC_CODEVIEW)
|
||||
if (GCC_CODEVIEW OR FORCE_CODEVIEW)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--pdb= ")
|
||||
add_compile_options(-gcodeview)
|
||||
message(STATUS "Enabling -gcodeview flag for backward-cpp.")
|
||||
else()
|
||||
message(WARNING "Could not enable -gcodeview! backward-cpp will not work.")
|
||||
endif()
|
||||
message(WARNING "Could not enable -gcodeview! backward-cpp will not work.")
|
||||
list(APPEND DEPENDENCIES_LIBRARIES dbghelp psapi)
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue