about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoshua Nelson <jnelson@cloudflare.com>2021-12-09 11:15:05 -0600
committerJoshua Nelson <jnelson@cloudflare.com>2021-12-09 11:30:38 -0600
commitae6f5fbc3f7825c42ade064be3a54f38a143e26b (patch)
treefd63137ce5b8d9ad09e47483057e7c32185fc4af
parent8a6f54fc3a4e8cbe71396b1fd51f5dc718e50f08 (diff)
If --verbose is passed, print a warning in `bootstrap.py` when download-rustc is ignored
-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 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/")