[Buildsystem] Improve cache handling

Prevents cache issues by not purging cache before starting a build.
Splits cache purge related code from progress code and delays the purge
until after final build is done.
This commit is contained in:
A Thousand Ships
2024-09-06 18:36:09 +02:00
parent d0dc3896ad
commit acffc53e01
2 changed files with 64 additions and 39 deletions

View File

@ -1092,7 +1092,6 @@ if "check_c_headers" in env:
env.AppendUnique(CPPDEFINES=[headers[header]])
# FIXME: This method mixes both cosmetic progress stuff and cache handling...
methods.show_progress(env)
# TODO: replace this with `env.Dump(format="json")`
# once we start requiring SCons 4.0 as min version.
@ -1124,3 +1123,5 @@ def purge_flaky_files():
atexit.register(purge_flaky_files)
methods.clean_cache(env)