remove -flto because it actually makes tpt significantly slower when compiled on the build server
worked fine on my computer, maybe something with the older gcc version? Affected both lin64 and lin32 versions. /LTGC works fine on msvc also, so stays enabled. -flto can be added manually with environment variables for anyone that wants to use it
This commit is contained in:
parent
5f4c5fb118
commit
883484e2f9
@ -474,11 +474,9 @@ elif GetOption('release'):
|
||||
else:
|
||||
env.Append(CCFLAGS=['/MD'])
|
||||
else:
|
||||
env.Append(CCFLAGS=['-O3', '-ftree-vectorize', '-funsafe-math-optimizations', '-ffast-math', '-fomit-frame-pointer', '-flto'])
|
||||
env.Append(CCFLAGS=['-O3', '-ftree-vectorize', '-funsafe-math-optimizations', '-ffast-math', '-fomit-frame-pointer'])
|
||||
if platform != "Darwin":
|
||||
env.Append(CCFLAGS=['-funsafe-loop-optimizations'])
|
||||
#-flto: link time optimization, gives a noticeable speed boost
|
||||
env.Append(LINKFLAGS=['-flto'])
|
||||
|
||||
if GetOption('static'):
|
||||
if platform == "Windows":
|
||||
|
Loading…
Reference in New Issue
Block a user