From 640a61b3b44a4b4232790a6a3d1acff0edb2c3f4 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 25 Sep 2012 18:14:39 +0100 Subject: [PATCH] Remove some fancy optimisations for old gcc in OS X --- SConscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SConscript b/SConscript index ff12bc8a6..b65d02f1b 100644 --- a/SConscript +++ b/SConscript @@ -263,7 +263,10 @@ if(GetOption('win')): programName += ".exe" if(GetOption('release')): - env.Append(CCFLAGS=['-O3', '-ftree-vectorize', '-funsafe-math-optimizations', '-ffast-math', '-fomit-frame-pointer', '-funsafe-loop-optimizations', '-Wunsafe-loop-optimizations']) + if GetOption('macosx'): + env.Append(CCFLAGS=['-O3', '-ftree-vectorize', '-funsafe-math-optimizations', '-ffast-math', '-fomit-frame-pointer']) + else: + env.Append(CCFLAGS=['-O3', '-ftree-vectorize', '-funsafe-math-optimizations', '-ffast-math', '-fomit-frame-pointer', '-funsafe-loop-optimizations', '-Wunsafe-loop-optimizations']) if(GetOption('win')): envCopy = env.Clone()