summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorSam Kleinman <samk@10gen.com>2016-08-19 13:55:49 -0400
committerSam Kleinman <samk@10gen.com>2016-08-19 14:20:50 -0400
commit9a56947f7e77612eccdc3c27c1936a885a91543e (patch)
tree4cbdd760765cfc06f9e8fc64169d11d48b56dc64 /buildscripts
parentaf166b15f20097452ee40f6847d39e218795cdcd (diff)
downloadmongo-9a56947f7e77612eccdc3c27c1936a885a91543e.tar.gz
SERVER-25706: only exclude linked artifacts from scons cache on static builds
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/generate_compile_expansions.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/buildscripts/generate_compile_expansions.py b/buildscripts/generate_compile_expansions.py
index ab1661bcfea..72a4e3e3937 100755
--- a/buildscripts/generate_compile_expansions.py
+++ b/buildscripts/generate_compile_expansions.py
@@ -75,5 +75,11 @@ if os.path.isfile(system_id_path):
print "scons_cache_path: {0}".format(default_cache_path)
+ scons_cache_mode = os.getenv("SCONS_CACHE_MODE")
+
+ if scons_cache_mode in (None, ""):
+ scons_cache_mode = "nolinked"
+
if os.getenv("USE_SCONS_CACHE") not in (None, False, "false", ""):
- print "scons_cache_args: --cache=nolinked --cache-dir='{0}'".format(default_cache_path)
+ print "scons_cache_args: --cache={0} --cache-dir='{1}'".format(scons_cache_mode,
+ default_cache_path)