Skip to content

Commit d952a84

Browse files
authored
Merge pull request #53799 from akien-mga/DEV_ENABLED
2 parents 0eed8d8 + e2dfb65 commit d952a84

File tree

7 files changed

+8
-0
lines changed

7 files changed

+8
-0
lines changed

platform/android/detect.py

+1
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def mySpawn(sh, escape, cmd, args, env):
203203
env.Append(LINKFLAGS=["-O0"])
204204
env.Append(CCFLAGS=["-O0", "-g", "-fno-limit-debug-info"])
205205
env.Append(CPPDEFINES=["_DEBUG", "DEBUG_ENABLED"])
206+
env.Append(CPPDEFINES=["DEV_ENABLED"])
206207
env.Append(CPPFLAGS=["-UNDEBUG"])
207208

208209
# Compiler configuration

platform/iphone/detect.py

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def configure(env):
5959
elif env["target"] == "debug":
6060
env.Append(CCFLAGS=["-gdwarf-2", "-O0"])
6161
env.Append(CPPDEFINES=["_DEBUG", ("DEBUG", 1), "DEBUG_ENABLED"])
62+
env.Append(CPPDEFINES=["DEV_ENABLED"])
6263

6364
if env["use_lto"]:
6465
env.Append(CCFLAGS=["-flto"])

platform/javascript/detect.py

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def configure(env):
8282
env.Append(LINKFLAGS=["--profiling-funcs"])
8383
else: # "debug"
8484
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
85+
env.Append(CPPDEFINES=["DEV_ENABLED"])
8586
env.Append(CCFLAGS=["-O1", "-g"])
8687
env.Append(LINKFLAGS=["-O1", "-g"])
8788
env["use_assertions"] = True

platform/linuxbsd/detect.py

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def configure(env):
113113
elif env["target"] == "debug":
114114
env.Prepend(CCFLAGS=["-g3"])
115115
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
116+
env.Prepend(CPPDEFINES=["DEV_ENABLED"])
116117
env.Append(LINKFLAGS=["-rdynamic"])
117118

118119
## Architecture

platform/osx/detect.py

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def configure(env):
6464
elif env["target"] == "debug":
6565
env.Prepend(CCFLAGS=["-g3"])
6666
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
67+
env.Prepend(CPPDEFINES=["DEV_ENABLED"])
6768
env.Prepend(LINKFLAGS=["-Xlinker", "-no_deduplicate"])
6869

6970
## Architecture

platform/uwp/detect.py

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def configure(env):
7272
env.Append(CCFLAGS=["/Zi"])
7373
env.Append(CCFLAGS=["/MDd"])
7474
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
75+
env.Append(CPPDEFINES=["DEV_ENABLED"])
7576
env.Append(LINKFLAGS=["/SUBSYSTEM:CONSOLE"])
7677
env.AppendUnique(CPPDEFINES=["WINDOWS_SUBSYSTEM_CONSOLE"])
7778
env.Append(LINKFLAGS=["/DEBUG"])

platform/windows/detect.py

+2
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def configure_msvc(env, manual_msvc_config):
208208
elif env["target"] == "debug":
209209
env.AppendUnique(CCFLAGS=["/Zi", "/FS", "/Od", "/EHsc"])
210210
env.AppendUnique(CPPDEFINES=["DEBUG_ENABLED"])
211+
env.AppendUnique(CPPDEFINES=["DEV_ENABLED"])
211212
env.Append(LINKFLAGS=["/DEBUG"])
212213

213214
if env["debug_symbols"]:
@@ -362,6 +363,7 @@ def configure_mingw(env):
362363
elif env["target"] == "debug":
363364
env.Append(CCFLAGS=["-g3"])
364365
env.Append(CPPDEFINES=["DEBUG_ENABLED"])
366+
env.Append(CPPDEFINES=["DEV_ENABLED"])
365367

366368
if env["windows_subsystem"] == "gui":
367369
env.Append(LINKFLAGS=["-Wl,--subsystem,windows"])

0 commit comments

Comments
 (0)