SCons: Remove unused DEBUG_MEMORY_ENABLED define
Its last use was removed in Godot 3.0, so it no longer makes sense to define.
Also removed `D3D_DEBUG_INFO` for Windows as it's likely a left over from a
long time ago pre-opensourcing when Godot had some form of Direct3D 9 support?
(cherry picked from commit dcf902df85
)
This commit is contained in:
parent
93f297e1d5
commit
f1cdb91f34
|
@ -164,7 +164,7 @@ def configure(env):
|
||||||
elif env["target"] == "debug":
|
elif env["target"] == "debug":
|
||||||
env.Append(LINKFLAGS=["-O0"])
|
env.Append(LINKFLAGS=["-O0"])
|
||||||
env.Append(CCFLAGS=["-O0", "-g", "-fno-limit-debug-info"])
|
env.Append(CCFLAGS=["-O0", "-g", "-fno-limit-debug-info"])
|
||||||
env.Append(CPPDEFINES=["_DEBUG", "DEBUG_ENABLED", "DEBUG_MEMORY_ENABLED"])
|
env.Append(CPPDEFINES=["_DEBUG", "DEBUG_ENABLED"])
|
||||||
env.Append(CPPFLAGS=["-UNDEBUG"])
|
env.Append(CPPFLAGS=["-UNDEBUG"])
|
||||||
|
|
||||||
# Compiler configuration
|
# Compiler configuration
|
||||||
|
|
|
@ -62,7 +62,7 @@ def configure(env):
|
||||||
|
|
||||||
elif env["target"] == "debug":
|
elif env["target"] == "debug":
|
||||||
env.Append(CCFLAGS=["-gdwarf-2", "-O0"])
|
env.Append(CCFLAGS=["-gdwarf-2", "-O0"])
|
||||||
env.Append(CPPDEFINES=["_DEBUG", ("DEBUG", 1), "DEBUG_ENABLED", "DEBUG_MEMORY_ENABLED"])
|
env.Append(CPPDEFINES=["_DEBUG", ("DEBUG", 1), "DEBUG_ENABLED"])
|
||||||
|
|
||||||
if env["use_lto"]:
|
if env["use_lto"]:
|
||||||
env.Append(CCFLAGS=["-flto"])
|
env.Append(CCFLAGS=["-flto"])
|
||||||
|
|
|
@ -66,7 +66,7 @@ def configure(env):
|
||||||
|
|
||||||
elif env["target"] == "debug":
|
elif env["target"] == "debug":
|
||||||
env.Prepend(CCFLAGS=["-g3"])
|
env.Prepend(CCFLAGS=["-g3"])
|
||||||
env.Prepend(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_MEMORY_ENABLED"])
|
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ def configure(env):
|
||||||
|
|
||||||
elif env["target"] == "debug":
|
elif env["target"] == "debug":
|
||||||
env.Prepend(CCFLAGS=["-g3"])
|
env.Prepend(CCFLAGS=["-g3"])
|
||||||
env.Prepend(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_MEMORY_ENABLED"])
|
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
|
||||||
env.Append(LINKFLAGS=["-rdynamic"])
|
env.Append(LINKFLAGS=["-rdynamic"])
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
|
@ -69,7 +69,7 @@ def configure(env):
|
||||||
elif env["target"] == "debug":
|
elif env["target"] == "debug":
|
||||||
env.Append(CCFLAGS=["/Zi"])
|
env.Append(CCFLAGS=["/Zi"])
|
||||||
env.Append(CCFLAGS=["/MDd"])
|
env.Append(CCFLAGS=["/MDd"])
|
||||||
env.Append(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_MEMORY_ENABLED"])
|
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
|
||||||
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
|
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
|
||||||
env.Append(LINKFLAGS=["/DEBUG"])
|
env.Append(LINKFLAGS=["/DEBUG"])
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ def configure_msvc(env, manual_msvc_config):
|
||||||
|
|
||||||
elif env["target"] == "debug":
|
elif env["target"] == "debug":
|
||||||
env.AppendUnique(CCFLAGS=["/Z7", "/Od", "/EHsc"])
|
env.AppendUnique(CCFLAGS=["/Z7", "/Od", "/EHsc"])
|
||||||
env.AppendUnique(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_MEMORY_ENABLED", "D3D_DEBUG_INFO"])
|
env.AppendUnique(CPPDEFINES=["DEBUG_ENABLED"])
|
||||||
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
|
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
|
||||||
env.Append(LINKFLAGS=["/DEBUG"])
|
env.Append(LINKFLAGS=["/DEBUG"])
|
||||||
|
|
||||||
|
@ -325,7 +325,7 @@ def configure_mingw(env):
|
||||||
|
|
||||||
elif env["target"] == "debug":
|
elif env["target"] == "debug":
|
||||||
env.Append(CCFLAGS=["-g3"])
|
env.Append(CCFLAGS=["-g3"])
|
||||||
env.Append(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_MEMORY_ENABLED"])
|
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
|
||||||
|
|
||||||
## Compiler configuration
|
## Compiler configuration
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ def configure(env):
|
||||||
|
|
||||||
elif env["target"] == "debug":
|
elif env["target"] == "debug":
|
||||||
env.Prepend(CCFLAGS=["-g3"])
|
env.Prepend(CCFLAGS=["-g3"])
|
||||||
env.Prepend(CPPDEFINES=["DEBUG_ENABLED", "DEBUG_MEMORY_ENABLED"])
|
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
|
||||||
env.Append(LINKFLAGS=["-rdynamic"])
|
env.Append(LINKFLAGS=["-rdynamic"])
|
||||||
|
|
||||||
## Architecture
|
## Architecture
|
||||||
|
|
Loading…
Reference in New Issue