@@ -189,11 +189,11 @@ def default_build_triple(verbose):
189
189
host = next (x for x in version .split ('\n ' ) if x .startswith ("host: " ))
190
190
triple = host .split ("host: " )[1 ]
191
191
if verbose :
192
- print ("detected default triple {}" .format (triple ))
192
+ print ("detected default triple {} from pre-installed rustc " .format (triple ))
193
193
return triple
194
194
except Exception as e :
195
195
if verbose :
196
- print ("rustup not detected: {}" .format (e ))
196
+ print ("pre-installed rustc not detected: {}" .format (e ))
197
197
print ("falling back to auto-detect" )
198
198
199
199
required = sys .platform != 'win32'
@@ -726,12 +726,15 @@ def maybe_download_ci_toolchain(self):
726
726
status = subprocess .call (["git" , "diff-index" , "--quiet" , commit , "--" , compiler , library ])
727
727
if status != 0 :
728
728
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 ))
729
732
return None
730
- print ("warning: `download-rustc` is enabled, but there are changes to \
731
- compiler/ or library/" )
733
+ print ("warning: `download-rustc` is enabled, but there are changes to " \
734
+ " compiler/ or library/" )
732
735
733
736
if self .verbose :
734
- print ("using downloaded stage1 artifacts from CI (commit {})" .format (commit ))
737
+ print ("using downloaded stage2 artifacts from CI (commit {})" .format (commit ))
735
738
self .rustc_commit = commit
736
739
# FIXME: support downloading artifacts from the beta channel
737
740
self .download_toolchain (False , "nightly" )
0 commit comments