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.
pull/796/head
Kevin Smith 2022-07-26 21:08:48 +01:00
parent 89ca5440a2
commit 7f44a1b44e
1 changed files with 1 additions and 0 deletions

View File

@ -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"]: