Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ae6f5fb

Browse files
committed
If --verbose is passed, print a warning in bootstrap.py when download-rustc is ignored
1 parent 8a6f54f commit ae6f5fb

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
@@ -726,6 +726,9 @@ def maybe_download_ci_toolchain(self):
726726
status = subprocess.call(["git", "diff-index", "--quiet", commit, "--", compiler, library])
727727
if status != 0:
728728
if download_rustc == "if-unchanged":
729+
if self.verbose:
730+
print("warning: saw changes to compiler/ or library/ since {}; " \
731+
"ignoring `download-rustc`".format(commit))
729732
return None
730733
print("warning: `download-rustc` is enabled, but there are changes to " \
731734
"compiler/ or library/")

0 commit comments

Comments
 (0)