From b55ff55943f86d298a18420aae962c570c4136fa Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 6 Oct 2025 15:49:11 -0500 Subject: [PATCH] disable -gcodeview a bug in GCC prevents it from being used. I will be reporting this soon. --- CMakeLists.txt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8eaf3dc1e..5ddba5cb8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()