summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2015-05-22 22:14:16 +0200
committerRémi Verschelde <rverschelde@gmail.com>2015-05-22 22:19:16 +0200
commit5f0bb18d55130d0f5d20552b9b19aef2ffe6f309 (patch)
tree672131e82efbc14673680f7ffb1e8ecdb9f9541e /platform
parentd3b42e41b0e446938d6634c8783e575de3d0b60f (diff)
Fix building release target with debug symbols
This forced the -g2 CCFLAG in release builds, making them relatively heavy. Fixes #1781.
Diffstat (limited to 'platform')
-rw-r--r--platform/x11/detect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 7fa1666c59..85714c46bb 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -109,8 +109,8 @@ def configure(env):
if (env["target"]=="release"):
-
- if (env["debug_release"]):
+
+ if (env["debug_release"]=="yes"):
env.Append(CCFLAGS=['-g2','-fomit-frame-pointer'])
else:
env.Append(CCFLAGS=['-O2','-ffast-math','-fomit-frame-pointer'])