Permalink
Browse files

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
  • Loading branch information...
jacob1 committed Mar 2, 2018
1 parent 5f4c5fb commit 883484e2f9fefc0b49642d4c3f4a2bd38b053723
Showing with 1 addition and 3 deletions.
  1. +1 −3 SConscript
@@ -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":

0 comments on commit 883484e

Please sign in to comment.