Topic was automatically imported from the old Question2Answer platform.
Asked By
StewartNJohnston
The scons incremental compilation does not appear to be working. (building main development trunk)
When I run:
scons platform=x11
and then run the same line again it appears to rebuild everything again.
Doesn’t scons support incremental compilation? I would expect the second build to run very very fast. Is my build maybe broken?
Any suggestions would be greatly appreciated.
Thank you,
Stewart
On Windows, if I run SCons from scratch, it takes about 10 minutes to build. But the second time is a lot faster if nothing changed (about 10-20 seconds at most).
I don’t know about X11 though.
Incremental builds in Godot are likely less efficient than they could be, possibly because some files are including unnecessary headers (include-what-you-use could be used to optimize this).
There’s still a few other ways to speed up incremental builds: installing ccache and using gold for linking, which can be done by adding LINKFLAGS="-fuse-ld=gold" at the end of the SCons command line.