GenerateToolchainsTask.kt checks if the standalone toolchain exists before regenerating it. If some process reaps files from java.io.tmpdir but leaves the top-level directory for that standalone toolchain in place, builds may fail in unpredictable ways. Running make_standalone_toolchain.py is quite fast, so we might consider removing the "already exists" check. --force also takes care of overriding contents properly, so the change is fairly straightforward: just remove the check.
GenerateToolchainsTask.kt
checks if the standalone toolchain exists before regenerating it. If some process reaps files fromjava.io.tmpdir
but leaves the top-level directory for that standalone toolchain in place, builds may fail in unpredictable ways. Runningmake_standalone_toolchain.py
is quite fast, so we might consider removing the "already exists" check.--force
also takes care of overriding contents properly, so the change is fairly straightforward: just remove the check.