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