clear both possible places for the scons cache

old-commit-hash: 599f000cde3f94ca0843770ef9889cbcc5173398
This commit is contained in:
George Hotz
2020-11-18 09:36:53 -08:00
parent 3e44be1461
commit c5282bf173

View File

@@ -125,7 +125,8 @@ if not prebuilt:
print("....%d" % i)
time.sleep(1)
subprocess.check_call(["scons", "-c"], cwd=BASEDIR, env=env)
shutil.rmtree("/tmp/scons_cache")
shutil.rmtree("/tmp/scons_cache", ignore_errors=True)
shutil.rmtree("/data/scons_cache", ignore_errors=True)
else:
print("scons build failed after retry")
sys.exit(1)