From 4d0a1c98a931d14567c1f2282d29e3377fd4e227 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Thu, 9 May 2013 16:34:47 -0500 Subject: [PATCH] optimization level 2/3 fails to pass unit tests. need to investigate --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 2873c125de..b104241a14 100644 --- a/SConstruct +++ b/SConstruct @@ -75,7 +75,7 @@ elif env['PLATFORM'] == 'posix': env.Append(CCFLAGS = ['-g', '-O0']) else: env.Append(CPPDEFINES = ['NDEBUG']) - env.Append(CCFLAGS = ['-O3', '-fomit-frame-pointer']) + env.Append(CCFLAGS = ['-O1', '-fomit-frame-pointer']) env.Append(CCFLAGS = ['-Wall']) #env['LINKFLAGS'] = '' elif env['PLATFORM'] == 'darwin': @@ -83,7 +83,7 @@ elif env['PLATFORM'] == 'darwin': env.Append(CCFLAGS = ['-g', '-O0']) else: env.Append(CPPDEFINES = ['NDEBUG']) - env.Append(CCFLAGS = ['-O3', '-fomit-frame-pointer']) + env.Append(CCFLAGS = ['-O1', '-fomit-frame-pointer']) env.Append(CCFLAGS = ['-Wall']) #env['LINKFLAGS'] = ''