mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 07:01:06 +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.
(cherry picked from commit cd21cc683a)
This commit is contained in:
parent
8c6e341876
commit
9657559b66
10 changed files with 15 additions and 36 deletions
|
|
@ -76,12 +76,9 @@ def configure(env):
|
|||
env.Append(LINKFLAGS=["-Os"])
|
||||
|
||||
if env["target"] == "release_debug":
|
||||
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
|
||||
# Retain function names for backtraces at the cost of file size.
|
||||
env.Append(LINKFLAGS=["--profiling-funcs"])
|
||||
else: # "debug"
|
||||
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
|
||||
env.Append(CPPDEFINES=["DEV_ENABLED"])
|
||||
env.Append(CCFLAGS=["-O1", "-g"])
|
||||
env.Append(LINKFLAGS=["-O1", "-g"])
|
||||
env["use_assertions"] = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue