From 7f44a1b44ec4eecaa840c14441c825e705bbde47 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Tue, 26 Jul 2022 21:08:48 +0100 Subject: [PATCH] Add debug information to Windows builds Previously, Windows builds were being produced without debug information, leading to somewhat unhelpful backtraces etc. without symbols. This builds the symbols in (only for debug builds - I've deliberately not touched release builds here) so gdextension bugs are a little more tractable. Test-Information: Have been running this patch for weeks, and getting useful traces out on the commandline, and useful debugging from debuggers. --- tools/windows.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/windows.py b/tools/windows.py index 62bc77d3..9c5ea6f9 100644 --- a/tools/windows.py +++ b/tools/windows.py @@ -28,6 +28,7 @@ def generate(env): env.Append(LINKFLAGS=["/WX"]) if env["target"] == "debug": env.Append(CCFLAGS=["/Z7", "/Od", "/EHsc", "/D_DEBUG", "/MDd"]) + env.Append(LINKFLAGS=["/DEBUG:FULL"]) elif env["target"] == "release": env.Append(CCFLAGS=["/O2", "/EHsc", "/DNDEBUG", "/MD"]) if env["use_clang_cl"]: