diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-15 22:09:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-15 22:09:51 +0200 |
| commit | cb9f476314ebe5bca6b389db2cbf15a21fe23d4b (patch) | |
| tree | b8d3b59193e0ee6cf2ad79a3b25c5d2e527549eb | |
| parent | 070456bccf8366d855fd90dd26d967501bf539a6 (diff) | |
| parent | b92ad97f1d8d458de880daea3826d8db30717a0e (diff) | |
| download | rust-cb9f476314ebe5bca6b389db2cbf15a21fe23d4b.tar.gz rust-cb9f476314ebe5bca6b389db2cbf15a21fe23d4b.zip | |
Rollup merge of #146563 - lolbinarycat:bootstrap-ci-no-incremental, r=Kobzol
bootstrap.py: disable incremental build for bootstrap in CI locally this seems to save a quarter of a second per build of bootstrap, presumably mainly because it avoids writing 280MB to disk. unsure if this is worth two extra lines of python, i'll let t-bootstrap decide.
| -rw-r--r-- | src/bootstrap/bootstrap.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 2ece53eb0cc..e017cfe6aef 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -1039,6 +1039,9 @@ class RustBuild(object): # See also: <https://github.com/rust-lang/rust/issues/70208>. if "CARGO_BUILD_TARGET" in env: del env["CARGO_BUILD_TARGET"] + # if in CI, don't use incremental build when building bootstrap. + if "GITHUB_ACTIONS" in env: + env["CARGO_INCREMENTAL"] = "0" env["CARGO_TARGET_DIR"] = build_dir env["RUSTC"] = self.rustc() env["LD_LIBRARY_PATH"] = ( |
