From bd396c5cfa3041b3d47b3bfd0ac44cc832d9f53f Mon Sep 17 00:00:00 2001 From: koalefant Date: Sun, 29 Nov 2015 20:56:27 +0100 Subject: [PATCH] Enabled debug symbols for x11 when using platform=release_debug and debug_release=yes together --- platform/x11/detect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/x11/detect.py b/platform/x11/detect.py index a37005738ab..d9965878640 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -118,6 +118,8 @@ def configure(env): elif (env["target"]=="release_debug"): env.Append(CCFLAGS=['-O2','-ffast-math','-DDEBUG_ENABLED']) + if (env["debug_release"]=="yes"): + env.Append(CCFLAGS=['-g2']) elif (env["target"]=="debug"):