diff options
author | Vitalii Lirnyk <vitalii.lirnyk@mongodb.com> | 2019-06-17 13:47:22 -0400 |
---|---|---|
committer | Vitalii Lirnyk <vitalii.lirnyk@mongodb.com> | 2019-06-21 12:45:46 -0400 |
commit | 2393ed14199eddebe25e56bc0a8fe1d47f2297cf (patch) | |
tree | 805ad6bcf102ce0fd7460975d8f7b5b1590febcf /buildscripts/generate_compile_expansions_shared_cache.py | |
parent | 94eb0ec5a609b18eaa43a40bb2f1151e30fb1308 (diff) | |
download | mongo-2393ed14199eddebe25e56bc0a8fe1d47f2297cf.tar.gz |
SERVER-41795 Enable Windows Shared SCons Cache
Diffstat (limited to 'buildscripts/generate_compile_expansions_shared_cache.py')
-rwxr-xr-x | buildscripts/generate_compile_expansions_shared_cache.py | 7 |
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[ |