If --verbose is passed, print a warning in bootstrap.py
when download-rustc is ignored
This commit is contained in:
parent
8a6f54fc3a
commit
ae6f5fbc3f
1 changed files with 3 additions and 0 deletions
|
@ -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/")
|
||||
|
|
Loading…
Add table
Reference in a new issue