diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2021-12-09 11:15:05 -0600 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2021-12-09 11:30:38 -0600 |
| commit | ae6f5fbc3f7825c42ade064be3a54f38a143e26b (patch) | |
| tree | fd63137ce5b8d9ad09e47483057e7c32185fc4af | |
| parent | 8a6f54fc3a4e8cbe71396b1fd51f5dc718e50f08 (diff) | |
If --verbose is passed, print a warning in `bootstrap.py` when download-rustc is ignored
| -rw-r--r-- | src/bootstrap/bootstrap.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 0cd0fabe9b1..5df3d0bde6d 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -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/") |
