If --verbose is passed, print a warning in bootstrap.py when download-rustc is ignored

This commit is contained in:
Joshua Nelson 2021-12-09 11:15:05 -06:00
parent 8a6f54fc3a
commit ae6f5fbc3f

View file

@ -726,6 +726,9 @@ class RustBuild(object):
status = subprocess.call(["git", "diff-index", "--quiet", commit, "--", compiler, library])
if status != 0:
if download_rustc == "if-unchanged":
if self.verbose:
print("warning: saw changes to compiler/ or library/ since {}; " \
"ignoring `download-rustc`".format(commit))
return None
print("warning: `download-rustc` is enabled, but there are changes to " \
"compiler/ or library/")