Remove -O3 on OS X, replace with -O2 for other platforms
This commit is contained in:
parent
1daeca781e
commit
9b8e6c0f8b
@ -457,9 +457,9 @@ elif GetOption('release'):
|
|||||||
else:
|
else:
|
||||||
env.Append(CCFLAGS=['/MD'])
|
env.Append(CCFLAGS=['/MD'])
|
||||||
else:
|
else:
|
||||||
env.Append(CCFLAGS=['-O3', '-ftree-vectorize', '-funsafe-math-optimizations', '-ffast-math', '-fomit-frame-pointer'])
|
env.Append(CCFLAGS=['-ftree-vectorize', '-funsafe-math-optimizations', '-ffast-math', '-fomit-frame-pointer'])
|
||||||
if platform != "Darwin":
|
if platform != "Darwin":
|
||||||
env.Append(CCFLAGS=['-funsafe-loop-optimizations'])
|
env.Append(CCFLAGS=['-O2', '-funsafe-loop-optimizations'])
|
||||||
|
|
||||||
if GetOption('static'):
|
if GetOption('static'):
|
||||||
if not msvc:
|
if not msvc:
|
||||||
|
Reference in New Issue
Block a user