summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2022-07-26 21:08:48 +0100
committerKevin Smith <git@kismith.co.uk>2022-07-28 20:37:44 +0100
commit7f44a1b44ec4eecaa840c14441c825e705bbde47 (patch)
tree31b1dc4416f53aa4140f071a15b161816a8682e2
parent89ca5440a213f40187e563790976b791b06ff2a7 (diff)
downloadredot-cpp-7f44a1b44ec4eecaa840c14441c825e705bbde47.tar.gz
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.
-rw-r--r--tools/windows.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/windows.py b/tools/windows.py
index 62bc77d..9c5ea6f 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"]: