diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-08 16:00:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 16:00:29 +0100 |
commit | 1c9894516538b3cc4a36500668964845e023d56c (patch) | |
tree | 7869ad00a4025fc463791f08a181aa6fc7a38e06 | |
parent | c05d205a5c2cd09731d8906ccad609131783cd33 (diff) | |
parent | 4946ae16fcc3299326b4b7105dbe20646ceddb17 (diff) |
Merge pull request #45825 from BastiaanOlij/windows_debugger_flags
Use /Zi and /FS for including debugger symbols on Windows with MSVC
-rw-r--r-- | platform/windows/detect.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 97ecacd247..f26dea8d35 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -204,12 +204,12 @@ def configure_msvc(env, manual_msvc_config): env.Append(LINKFLAGS=["/OPT:REF"]) elif env["target"] == "debug": - env.AppendUnique(CCFLAGS=["/Z7", "/Od", "/EHsc"]) + env.AppendUnique(CCFLAGS=["/Zi", "/FS", "/Od", "/EHsc"]) env.AppendUnique(CPPDEFINES=["DEBUG_ENABLED"]) env.Append(LINKFLAGS=["/DEBUG"]) if env["debug_symbols"]: - env.AppendUnique(CCFLAGS=["/Z7"]) + env.AppendUnique(CCFLAGS=["/Zi", "/FS"]) env.AppendUnique(LINKFLAGS=["/DEBUG"]) if env["windows_subsystem"] == "gui": @@ -224,6 +224,7 @@ def configure_msvc(env, manual_msvc_config): env.AppendUnique(CCFLAGS=["/MT"]) else: env.AppendUnique(CCFLAGS=["/MD"]) + env.AppendUnique(CCFLAGS=["/Gd", "/GR", "/nologo"]) # Force to use Unicode encoding env.AppendUnique(CCFLAGS=["/utf-8"]) |