summaryrefslogtreecommitdiff
path: root/platform/iphone
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-10-15 08:39:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2021-10-15 10:26:58 +0200
commitcd21cc683a565a775b31aad4bd1e61d6c791d5ed (patch)
tree3a73e14679e165bfcbbb3415dfe65fcff9232f69 /platform/iphone
parente2bfb27efb858c4a1314d314386531cbcdfcf335 (diff)
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.
Diffstat (limited to 'platform/iphone')
-rw-r--r--platform/iphone/detect.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py
index 3c6453ff9b..0d28aa2f06 100644
--- a/platform/iphone/detect.py
+++ b/platform/iphone/detect.py
@@ -53,13 +53,9 @@ def configure(env):
env.Append(CCFLAGS=["-Os", "-ftree-vectorize"])
env.Append(LINKFLAGS=["-Os"])
- if env["target"] == "release_debug":
- env.Append(CPPDEFINES=["DEBUG_ENABLED"])
-
elif env["target"] == "debug":
env.Append(CCFLAGS=["-gdwarf-2", "-O0"])
- env.Append(CPPDEFINES=["_DEBUG", ("DEBUG", 1), "DEBUG_ENABLED"])
- env.Append(CPPDEFINES=["DEV_ENABLED"])
+ env.Append(CPPDEFINES=["_DEBUG", ("DEBUG", 1)])
if env["use_lto"]:
env.Append(CCFLAGS=["-flto"])