From 883484e2f9fefc0b49642d4c3f4a2bd38b053723 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 1 Mar 2018 23:52:17 -0500 Subject: [PATCH] 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 --- SConscript | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SConscript b/SConscript index 46f492b55..223365675 100644 --- a/SConscript +++ b/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":