Skip to content

Commit b92ad97

Browse files
committed
bootstrap.py: disable incremental build for bootstrap in CI
1 parent 52618eb commit b92ad97

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)