Skip to content

Commit 7ca4ba7

Browse files
authored
Unrolled build for #146563
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.
2 parents a454fcc + b92ad97 commit 7ca4ba7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/bootstrap.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,9 @@ def build_bootstrap_cmd(self, env):
10391039
# See also: <https://github.com/rust-lang/rust/issues/70208>.
10401040
if "CARGO_BUILD_TARGET" in env:
10411041
del env["CARGO_BUILD_TARGET"]
1042+
# if in CI, don't use incremental build when building bootstrap.
1043+
if "GITHUB_ACTIONS" in env:
1044+
env["CARGO_INCREMENTAL"] = "0"
10421045
env["CARGO_TARGET_DIR"] = build_dir
10431046
env["RUSTC"] = self.rustc()
10441047
env["LD_LIBRARY_PATH"] = (

0 commit comments

Comments
 (0)