diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-09-15 09:18:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 09:18:58 +0200 |
commit | bc15704c429f27754c9aa4d883b677857a340e34 (patch) | |
tree | 1b3f6443a5e7a6698fa3826fd7acbf570e75f3c9 /platform/uwp/detect.py | |
parent | 3a8a0bc5d3098dae3e2daddf1880cf1a55d7080b (diff) | |
parent | 4df86f8b048a977fed51891849859b8171e1a18b (diff) |
Merge pull request #42065 from Calinou/editor-toggle-console-subsystem
Only display the Windows toggle console option if it can actually be used
Diffstat (limited to 'platform/uwp/detect.py')
-rw-r--r-- | platform/uwp/detect.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/uwp/detect.py b/platform/uwp/detect.py index 04b743f2c8..a7ca26c16c 100644 --- a/platform/uwp/detect.py +++ b/platform/uwp/detect.py @@ -65,12 +65,14 @@ def configure(env): env.Append(CCFLAGS=["/MD"]) env.Append(CPPDEFINES=["DEBUG_ENABLED"]) env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"]) + env.AppendUnique(CPPDEFINES=["WINDOWS_SUBSYSTEM_CONSOLE"]) elif env["target"] == "debug": env.Append(CCFLAGS=["/Zi"]) env.Append(CCFLAGS=["/MDd"]) env.Append(CPPDEFINES=["DEBUG_ENABLED"]) env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"]) + env.AppendUnique(CPPDEFINES=["WINDOWS_SUBSYSTEM_CONSOLE"]) env.Append(LINKFLAGS=["/DEBUG"]) ## Compiler configuration |