mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 02:21:15 +00:00
SCons: Set DEBUG_ENABLED and DEV_ENABLED in SConstruct
They're the same for all platforms so they don't need to be repeated in all platform definitions.
This commit is contained in:
parent
e2bfb27efb
commit
cd21cc683a
9 changed files with 15 additions and 32 deletions
|
|
@ -105,15 +105,12 @@ def configure(env):
|
|||
env.Prepend(CCFLAGS=["-O2"])
|
||||
elif env["optimize"] == "size": # optimize for size
|
||||
env.Prepend(CCFLAGS=["-Os"])
|
||||
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
|
||||
|
||||
if env["debug_symbols"]:
|
||||
env.Prepend(CCFLAGS=["-g2"])
|
||||
|
||||
elif env["target"] == "debug":
|
||||
env.Prepend(CCFLAGS=["-g3"])
|
||||
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
|
||||
env.Prepend(CPPDEFINES=["DEV_ENABLED"])
|
||||
env.Append(LINKFLAGS=["-rdynamic"])
|
||||
|
||||
## Architecture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue