From 1f5edf45f0b8c8b2ed196acb076a42ada55e2332 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 10 Feb 2009 17:59:49 +0000 Subject: [PATCH] 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 --- SConstruct | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 802bfabed..5fa9120e8 100644 --- a/SConstruct +++ b/SConstruct @@ -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':