summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/detect.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-02-08 08:52:21 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-02-08 08:53:16 +0100
commit849c090343a22b98f0c977f2bb3469f709688de4 (patch)
tree1447e96c9172221f29bbd380b4006c74dded38cc /platform/linuxbsd/detect.py
parent57e2822a05c29db3980ad243c37a34acf6c4d14b (diff)
downloadredot-engine-849c090343a22b98f0c977f2bb3469f709688de4.tar.gz
SCons: Fix debug_symbols tests after switch to BoolVariable
Bug introduced in #45679. Fixes part of #45816.
Diffstat (limited to 'platform/linuxbsd/detect.py')
-rw-r--r--platform/linuxbsd/detect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
index 2141f68725..13d1fe3237 100644
--- a/platform/linuxbsd/detect.py
+++ b/platform/linuxbsd/detect.py
@@ -92,7 +92,7 @@ def configure(env):
else: # optimize for size
env.Prepend(CCFLAGS=["-Os"])
- if env["debug_symbols"] == "yes":
+ if env["debug_symbols"]:
env.Prepend(CCFLAGS=["-g2"])
elif env["target"] == "release_debug":
@@ -102,7 +102,7 @@ def configure(env):
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":