Skip to content

Commit

Permalink
remove -flto because it actually makes tpt significantly slower when …
Browse files Browse the repository at this point in the history
…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 883484e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions SConscript
Expand Up @@ -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":
Expand Down

0 comments on commit 883484e

Please sign in to comment.