You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Allow to not optimize release build
This commit is contained in:
@@ -54,16 +54,19 @@ def configure(env):
|
||||
## Build type
|
||||
|
||||
if env["target"] == "release":
|
||||
env.Append(CCFLAGS=["/O2", "/GL"])
|
||||
env.Append(CCFLAGS=["/MD"])
|
||||
env.Append(LINKFLAGS=["/SUBSYSTEM:WINDOWS", "/LTCG"])
|
||||
env.Append(LINKFLAGS=["/SUBSYSTEM:WINDOWS"])
|
||||
if env["optimize"] != "none":
|
||||
env.Append(CCFLAGS=["/O2", "/GL"])
|
||||
env.Append(LINKFLAGS=["/LTCG"])
|
||||
|
||||
elif env["target"] == "release_debug":
|
||||
env.Append(CCFLAGS=["/O2", "/Zi"])
|
||||
env.Append(CCFLAGS=["/MD"])
|
||||
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
|
||||
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
|
||||
env.AppendUnique(CPPDEFINES=["WINDOWS_SUBSYSTEM_CONSOLE"])
|
||||
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
|
||||
if env["optimize"] != "none":
|
||||
env.Append(CCFLAGS=["/O2", "/Zi"])
|
||||
|
||||
elif env["target"] == "debug":
|
||||
env.Append(CCFLAGS=["/Zi"])
|
||||
|
||||
Reference in New Issue
Block a user