From 5f0bb18d55130d0f5d20552b9b19aef2ffe6f309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 22 May 2015 22:14:16 +0200 Subject: Fix building release target with debug symbols This forced the -g2 CCFLAG in release builds, making them relatively heavy. Fixes #1781. --- platform/x11/detect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/x11/detect.py') 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']) -- cgit v1.2.3