Skip to content

Commit

Permalink
Merge pull request #53383 from akien-mga/3.x-DEV_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Oct 4, 2021
2 parents b301514 + e292d79 commit 555e937
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/android/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def mySpawn(sh, escape, cmd, args, env):
elif env["target"] == "debug":
env.Append(LINKFLAGS=["-O0"])
env.Append(CCFLAGS=["-O0", "-g", "-fno-limit-debug-info"])
env.Append(CPPDEFINES=["_DEBUG", "DEBUG_ENABLED"])
env.Append(CPPDEFINES=["_DEBUG", "DEBUG_ENABLED", "DEV_ENABLED"])
env.Append(CPPFLAGS=["-UNDEBUG"])

# Compiler configuration
Expand Down
2 changes: 1 addition & 1 deletion platform/iphone/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def configure(env):

elif env["target"] == "debug":
env.Append(CCFLAGS=["-gdwarf-2", "-O0"])
env.Append(CPPDEFINES=["_DEBUG", ("DEBUG", 1), "DEBUG_ENABLED"])
env.Append(CPPDEFINES=["_DEBUG", ("DEBUG", 1), "DEBUG_ENABLED", "DEV_ENABLED"])

if env["use_lto"]:
env.Append(CCFLAGS=["-flto"])
Expand Down
1 change: 1 addition & 0 deletions platform/javascript/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def configure(env):
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
Expand Down
1 change: 1 addition & 0 deletions platform/osx/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def configure(env):
elif env["target"] == "debug":
env.Prepend(CCFLAGS=["-g3"])
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
env.Prepend(CPPDEFINES=["DEV_ENABLED"])
env.Prepend(LINKFLAGS=["-Xlinker", "-no_deduplicate"])

## Architecture
Expand Down
1 change: 1 addition & 0 deletions platform/server/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def configure(env):
elif env["target"] == "debug":
env.Prepend(CCFLAGS=["-g3"])
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
env.Prepend(CPPDEFINES=["DEV_ENABLED"])
env.Append(LINKFLAGS=["-rdynamic"])

## Architecture
Expand Down
1 change: 1 addition & 0 deletions platform/uwp/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def configure(env):
env.Append(CCFLAGS=["/Zi"])
env.Append(CCFLAGS=["/MDd"])
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
env.Append(CPPDEFINES=["DEV_ENABLED"])
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
env.Append(LINKFLAGS=["/DEBUG"])

Expand Down
2 changes: 2 additions & 0 deletions platform/windows/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def configure_msvc(env, manual_msvc_config):
elif env["target"] == "debug":
env.AppendUnique(CCFLAGS=["/Zi", "/FS", "/Od", "/EHsc"])
env.AppendUnique(CPPDEFINES=["DEBUG_ENABLED"])
env.AppendUnique(CPPDEFINES=["DEV_ENABLED"])
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
env.Append(LINKFLAGS=["/DEBUG"])

Expand Down Expand Up @@ -334,6 +335,7 @@ def configure_mingw(env):
elif env["target"] == "debug":
env.Append(CCFLAGS=["-g3"])
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
env.Append(CPPDEFINES=["DEV_ENABLED"])

## Compiler configuration

Expand Down
1 change: 1 addition & 0 deletions platform/x11/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def configure(env):
env.Prepend(CCFLAGS=["-ggdb"])
env.Prepend(CCFLAGS=["-g3"])
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
env.Prepend(CPPDEFINES=["DEV_ENABLED"])
env.Append(LINKFLAGS=["-rdynamic"])

## Architecture
Expand Down

0 comments on commit 555e937

Please sign in to comment.