summaryrefslogtreecommitdiff
path: root/buildscripts/generate_compile_expansions_shared_cache.py
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-06-21 12:45:46 -0400
commit2393ed14199eddebe25e56bc0a8fe1d47f2297cf (patch)
tree805ad6bcf102ce0fd7460975d8f7b5b1590febcf /buildscripts/generate_compile_expansions_shared_cache.py
parent94eb0ec5a609b18eaa43a40bb2f1151e30fb1308 (diff)
downloadmongo-2393ed14199eddebe25e56bc0a8fe1d47f2297cf.tar.gz
SERVER-41795 Enable Windows Shared SCons Cache
Diffstat (limited to 'buildscripts/generate_compile_expansions_shared_cache.py')
-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 1542eaafcdb..1fbfdfb6aec 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[