Merge pull request #796 from Kev/windows-debug-symbols

Add debug information to Windows builds
pull/799/head
Fabio Alessandrelli 2022-07-29 15:46:46 +02:00 committed by GitHub
commit 9aa129caab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"]: