summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorVitalii Lirnyk <vitalii.lirnyk@mongodb.com>2019-06-17 13:47:22 -0400
committerVitalii Lirnyk <vitalii.lirnyk@mongodb.com>2019-07-24 09:51:30 -0400
commitf3dd706ebacc2a9ff582d97b32410f1b9ebd1b4c (patch)
treecf1032c8be20f7302f2948b42c1b0e26515b3709 /buildscripts
parent88be1e9ba104dffbc23aae7a817a944cf6058eff (diff)
downloadmongo-f3dd706ebacc2a9ff582d97b32410f1b9ebd1b4c.tar.gz
SERVER-41795 Enable Windows Shared SCons Cache
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/generate_compile_expansions_shared_cache.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/buildscripts/generate_compile_expansions_shared_cache.py b/buildscripts/generate_compile_expansions_shared_cache.py
index ee6ce5ad04d..fcfa491009b 100755
--- a/buildscripts/generate_compile_expansions_shared_cache.py
+++ b/buildscripts/generate_compile_expansions_shared_cache.py
@@ -93,9 +93,12 @@ def generate_scons_cache_expansions():
# Global shared cache using EFS
if os.getenv("SCONS_CACHE_SCOPE") == "shared":
- default_cache_path = os.path.join("/efs", system_uuid, "scons-cache")
+ if sys.platform.startswith("win"):
+ shared_mount_root = 'X:\\'
+ else:
+ shared_mount_root = '/efs'
+ default_cache_path = os.path.join(shared_mount_root, system_uuid, "scons-cache")
expansions["scons_cache_path"] = default_cache_path
-
# Patches are read only
if os.getenv("IS_PATCH"):
expansions[