mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-23 16:33:00 +02:00
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:
@@ -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":
|
||||
|
Reference in New Issue
Block a user