summaryrefslogtreecommitdiff
path: root/platform/ios/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-09-23 16:45:12 +0200
committerGitHub <noreply@github.com>2022-09-23 16:45:12 +0200
commitf74491fdee9bc2d68668137fbacd8f3a7e7e8df7 (patch)
treeb5f98590d90e8545b102f67de3e2f61f1fcd6404 /platform/ios/detect.py
parent56e847ef653ce2b818b9f2095452b6c0c0c44d54 (diff)
parent26e9145c26e6a6c2794300a4a7cf5b19e8b6be37 (diff)
Merge pull request #66303 from akien-mga/scons-cleanup-debug-defines
Diffstat (limited to 'platform/ios/detect.py')
-rw-r--r--platform/ios/detect.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/ios/detect.py b/platform/ios/detect.py
index cb863e266d..0f277d6b3a 100644
--- a/platform/ios/detect.py
+++ b/platform/ios/detect.py
@@ -55,7 +55,7 @@ def configure(env):
## Build type
if env["target"].startswith("release"):
- env.Append(CPPDEFINES=["NDEBUG", ("NS_BLOCK_ASSERTIONS", 1)])
+ env.Append(CPPDEFINES=[("NS_BLOCK_ASSERTIONS", 1)])
if env["optimize"] == "speed": # optimize for speed (default)
# `-O2` is more friendly to debuggers than `-O3`, leading to better crash backtraces
# when using `target=release_debug`.
@@ -67,8 +67,7 @@ def configure(env):
env.Append(LINKFLAGS=["-Os"])
elif env["target"] == "debug":
- env.Append(CCFLAGS=["-gdwarf-2", "-O0"])
- env.Append(CPPDEFINES=["_DEBUG", ("DEBUG", 1)])
+ env.Append(CCFLAGS=["-g", "-O0"])
## LTO