tici has a real /tmp

old-commit-hash: bbd1b758ffc223ebee621d069dbc312a93bf6466
This commit is contained in:
Adeeb Shihadeh
2020-11-16 21:33:33 -08:00
parent c3a745eb90
commit 615e5410c5

View File

@@ -195,7 +195,7 @@ env = Environment(
CYTHONCFILESUFFIX=".cpp",
tools=["default", "cython"]
)
if os.environ.get('SCONS_CACHE'):
cache_dir = '/tmp/scons_cache'
@@ -209,6 +209,9 @@ if os.environ.get('SCONS_CACHE'):
if not os.path.isdir(cache_dir_branch) and os.path.isdir(cache_dir):
shutil.copytree(cache_dir, cache_dir_branch)
cache_dir = cache_dir_branch
elif TICI:
cache_dir = '/data/scons_cache'
CacheDir(cache_dir)
node_interval = 5