scons: Use implicit caching of deps if SCONS_CACHE is requested which should double or triple the speed at which the 'scons: Building targets ...' step will run. Hint: use the --implicit-deps-unchanged flag for even quicker target checking
This commit is contained in:
parent
f7affe0919
commit
1f5edf45f0
1 changed files with 5 additions and 1 deletions
|
@ -226,12 +226,16 @@ color_print (4,"Building on %s in *%s*..." % (env['PLATFORM'],mode))
|
|||
Help(opts.GenerateHelpText(env))
|
||||
|
||||
if env['SCONS_CACHE']:
|
||||
pass # caching is 'auto' by default in SCons
|
||||
# caching is 'auto' by default in SCons
|
||||
# But let's also cache implicit deps...
|
||||
SetOption('implicit_cache', 1)
|
||||
|
||||
else:
|
||||
# Set the cache mode to 'force' unless requested, avoiding hidden caching of Scons 'opts' in '.sconsign.dblite'
|
||||
# This allows for a SCONS_LOCAL_CONFIG, if present, to be used as the primary means of storing paths to successful build dependencies
|
||||
from SCons.SConf import SetCacheMode
|
||||
SetCacheMode('force')
|
||||
|
||||
|
||||
thread_suffix = 'mt'
|
||||
if env['PLATFORM'] == 'FreeBSD':
|
||||
|
|
Loading…
Reference in a new issue