You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[Windows] Attach to parent console instead of creating new one.
This commit is contained in:
@@ -183,7 +183,6 @@ def configure_msvc(env, manual_msvc_config):
|
||||
env.Append(CCFLAGS=["/O2"])
|
||||
else: # optimize for size
|
||||
env.Append(CCFLAGS=["/O1"])
|
||||
env.Append(LINKFLAGS=["/SUBSYSTEM:WINDOWS"])
|
||||
env.Append(LINKFLAGS=["/ENTRY:mainCRTStartup"])
|
||||
env.Append(LINKFLAGS=["/OPT:REF"])
|
||||
|
||||
@@ -193,15 +192,15 @@ def configure_msvc(env, manual_msvc_config):
|
||||
else: # optimize for size
|
||||
env.Append(CCFLAGS=["/O1"])
|
||||
env.AppendUnique(CPPDEFINES=["DEBUG_ENABLED"])
|
||||
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
|
||||
env.Append(LINKFLAGS=["/OPT:REF"])
|
||||
|
||||
elif env["target"] == "debug":
|
||||
env.AppendUnique(CCFLAGS=["/Z7", "/Od", "/EHsc"])
|
||||
env.AppendUnique(CPPDEFINES=["DEBUG_ENABLED"])
|
||||
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
|
||||
env.Append(LINKFLAGS=["/DEBUG"])
|
||||
|
||||
env.Append(LINKFLAGS=["/SUBSYSTEM:WINDOWS"])
|
||||
|
||||
if env["debug_symbols"] == "full" or env["debug_symbols"] == "yes":
|
||||
env.AppendUnique(CCFLAGS=["/Z7"])
|
||||
env.AppendUnique(LINKFLAGS=["/DEBUG"])
|
||||
@@ -314,8 +313,6 @@ def configure_mingw(env):
|
||||
else: # optimize for size
|
||||
env.Prepend(CCFLAGS=["-Os"])
|
||||
|
||||
env.Append(LINKFLAGS=["-Wl,--subsystem,windows"])
|
||||
|
||||
if env["debug_symbols"] == "yes":
|
||||
env.Prepend(CCFLAGS=["-g1"])
|
||||
if env["debug_symbols"] == "full":
|
||||
@@ -337,6 +334,8 @@ def configure_mingw(env):
|
||||
env.Append(CCFLAGS=["-g3"])
|
||||
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
|
||||
|
||||
env.Append(LINKFLAGS=["-Wl,--subsystem,windows"])
|
||||
|
||||
## Compiler configuration
|
||||
|
||||
if os.name != "nt":
|
||||
|
||||
Reference in New Issue
Block a user