summaryrefslogtreecommitdiff
path: root/platform/osx/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-02-08 09:59:28 +0100
committerGitHub <noreply@github.com>2021-02-08 09:59:28 +0100
commit5260b6e046c244ed6376c47c7af5a0f27d934c12 (patch)
treef137667e15a167cbab8eae06daa7a6bb3881247b /platform/osx/detect.py
parentcea42faa77d72cdbea8ab7c38936e7c8722900d0 (diff)
parent849c090343a22b98f0c977f2bb3469f709688de4 (diff)
Merge pull request #45818 from akien-mga/debug_symbols-bool
SCons: Fix debug_symbols tests after switch to BoolVariable
Diffstat (limited to 'platform/osx/detect.py')
-rw-r--r--platform/osx/detect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py
index 47ac609917..acea00c5ac 100644
--- a/platform/osx/detect.py
+++ b/platform/osx/detect.py
@@ -54,7 +54,7 @@ def configure(env):
if env["arch"] != "arm64":
env.Prepend(CCFLAGS=["-msse2"])
- if env["debug_symbols"] == "yes":
+ if env["debug_symbols"]:
env.Prepend(CCFLAGS=["-g2"])
elif env["target"] == "release_debug":
@@ -63,7 +63,7 @@ def configure(env):
else: # optimize for size
env.Prepend(CCFLAGS=["-Os"])
env.Prepend(CPPDEFINES=["DEBUG_ENABLED"])
- if env["debug_symbols"] == "yes":
+ if env["debug_symbols"]:
env.Prepend(CCFLAGS=["-g2"])
elif env["target"] == "debug":