Remove some fancy optimisations for old gcc in OS X

This commit is contained in:
Simon Robertshaw 2012-09-25 18:14:39 +01:00
parent 2833c0d20c
commit 640a61b3b4

View File

@ -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()