Fix building release target with debug symbols

This forced the -g2 CCFLAG in release builds, making them relatively heavy.
Fixes #1781.
This commit is contained in:
Rémi Verschelde 2015-05-22 22:14:16 +02:00
parent d3b42e41b0
commit 5f0bb18d55
1 changed files with 2 additions and 2 deletions

View File

@ -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'])