about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-09-14 18:26:29 -0500
committerbinarycat <binarycat@envs.net>2025-09-14 18:26:29 -0500
commitb92ad97f1d8d458de880daea3826d8db30717a0e (patch)
tree72fb85227b19934817dc2ab3fd782bfbe7a80781 /src
parent52618eb338609df44978b0ca4451ab7941fd1c7a (diff)
downloadrust-b92ad97f1d8d458de880daea3826d8db30717a0e.tar.gz
rust-b92ad97f1d8d458de880daea3826d8db30717a0e.zip
bootstrap.py: disable incremental build for bootstrap in CI
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/bootstrap.py3
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"] = (