From 78c12522dedee22983c7b6bba3209a658f4ba97d Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Sun, 15 Feb 2026 22:00:35 +0900 Subject: [PATCH] Produce PDB for Windows builds Makes life easier when there's a crash inside. --- .github/workflows/build-be.yml | 4 ++++ xmake.lua | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/build-be.yml b/.github/workflows/build-be.yml index 8b56b3c..003a8b6 100644 --- a/.github/workflows/build-be.yml +++ b/.github/workflows/build-be.yml @@ -19,8 +19,10 @@ jobs: run: | ./build.ps1 Copy-Item -Path ./build/windows/x64/release/doorstop.dll -Destination ./artifacts/release/x64/winhttp.dll + Copy-Item -Path ./build/windows/x64/release/doorstop.pdb -Destination ./artifacts/release/x64/winhttp.pdb Copy-Item -Path ./build/windows/x64/release/.doorstop_version -Destination ./artifacts/release/x64/.doorstop_version Copy-Item -Path ./build/windows/x86/release/doorstop.dll -Destination ./artifacts/release/x86/winhttp.dll + Copy-Item -Path ./build/windows/x86/release/doorstop.pdb -Destination ./artifacts/release/x86/winhttp.pdb Copy-Item -Path ./build/windows/x86/release/.doorstop_version -Destination ./artifacts/release/x86/.doorstop_version Copy-Item -Path ./assets/windows/doorstop_config.ini -Destination ./artifacts/release/x64/doorstop_config.ini Copy-Item -Path ./assets/windows/doorstop_config.ini -Destination ./artifacts/release/x86/doorstop_config.ini @@ -29,8 +31,10 @@ jobs: run: | ./build.ps1 -with_logging Copy-Item -Path ./build/windows/x64/release/doorstop.dll -Destination ./artifacts/verbose/x64/winhttp.dll + Copy-Item -Path ./build/windows/x64/release/doorstop.pdb -Destination ./artifacts/verbose/x64/winhttp.pdb Copy-Item -Path ./build/windows/x64/release/.doorstop_version -Destination ./artifacts/verbose/x64/.doorstop_version Copy-Item -Path ./build/windows/x86/release/doorstop.dll -Destination ./artifacts/verbose/x86/winhttp.dll + Copy-Item -Path ./build/windows/x86/release/doorstop.pdb -Destination ./artifacts/verbose/x86/winhttp.pdb Copy-Item -Path ./build/windows/x86/release/.doorstop_version -Destination ./artifacts/verbose/x86/.doorstop_version Copy-Item -Path ./assets/windows/doorstop_config.ini -Destination ./artifacts/verbose/x64/doorstop_config.ini Copy-Item -Path ./assets/windows/doorstop_config.ini -Destination ./artifacts/verbose/x86/doorstop_config.ini diff --git a/xmake.lua b/xmake.lua index 66e204a..b34f9c2 100644 --- a/xmake.lua +++ b/xmake.lua @@ -43,6 +43,7 @@ target("doorstop") end if is_plat("windows") then + set_symbols("debug") add_cxflags("-GS-", "-Ob2", "-MT", "-GL-", "-FS") add_shflags("-nodefaultlib", "-entry:DllEntry",