tici has a real /tmp

This commit is contained in:
Adeeb Shihadeh 2020-11-16 21:33:33 -08:00
parent 36391bf12f
commit bbd1b758ff
1 changed files with 4 additions and 1 deletions

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