From 1ea36ba13f09bbbb929fb97ae7b8fda264b71616 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 3 Feb 2024 17:46:09 -0500 Subject: [PATCH] warn on lack of gcodeview --- CMakeLists.txt | 3 +++ scripts/release-win64.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74d2c2ea5..3c4d4eca4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -924,6 +924,9 @@ if (USE_BACKWARD) if (GCC_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() list(APPEND DEPENDENCIES_LIBRARIES dbghelp psapi) endif() diff --git a/scripts/release-win64.sh b/scripts/release-win64.sh index edd4007fc..8ec97a258 100755 --- a/scripts/release-win64.sh +++ b/scripts/release-win64.sh @@ -15,7 +15,7 @@ fi cd winbuild # TODO: potential Arch-ism? -x86_64-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS="-O2" -DCMAKE_CXX_FLAGS="-O2 -Wall -Wextra -Wno-unused-parameter -Wno-cast-function-type -Wno-deprecated-declarations -Werror" .. || exit 1 +x86_64-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_FLAGS="-O2" -DCMAKE_CXX_FLAGS="-O2 -Wall -Wextra -Wno-unused-parameter -Wno-cast-function-type -Wno-deprecated-declarations -Werror" -DUSE_BACKWARD=ON .. || exit 1 make -j8 || exit 1 cd ..