use scons cache by default (#21102)

* always use scons cache

* cleanup
old-commit-hash: a0dabd94e9d04fdc772b3cb34b6cd016da29d971
This commit is contained in:
Adeeb Shihadeh
2021-06-01 17:12:32 -07:00
committed by GitHub
parent 387d5b88a0
commit fb62002e92
6 changed files with 9 additions and 13 deletions
+4 -7
View File
@@ -223,13 +223,10 @@ env = Environment(
if GetOption('compile_db'):
env.CompilationDatabase('compile_commands.json')
if os.environ.get('SCONS_CACHE'):
cache_dir = '/tmp/scons_cache'
if TICI:
cache_dir = '/data/scons_cache'
CacheDir(cache_dir)
Clean(["."], cache_dir)
# Setup cache dir
cache_dir = '/data/scons_cache' if TICI else '/tmp/scons_cache'
CacheDir(cache_dir)
Clean(["."], cache_dir)
node_interval = 5
node_count = 0