I have an SCons script that takes around 10 seconds just to find out that nothing needs to be rebuild, which feels awfully long for what is essentially a rather small project. Reading the SConscript itself takes just a second or two, most of the time is spend at the:
scons: Building targets ...
step.
How can I find out what exactly scons
is doing at this point? And what other general advise can be given on writing fast SCons scripts?
(Stolen directly from http://www.scons.org/wiki/GoFastButton)
The command 'scons --max-drift=1 --implicit-deps-unchanged' will execute your build as fast as possible.
OR:
Another trick to making things faster is to avoid relinking programs when a shared library has been modified but not rebuilt. See SharedLibrarySignatureOverride