@@ -189,11 +189,11 @@ def default_build_triple(verbose):
189189 host = next (x for x in version .split ('\n ' ) if x .startswith ("host: " ))
190190 triple = host .split ("host: " )[1 ]
191191 if verbose :
192- print ("detected default triple {}" .format (triple ))
192+ print ("detected default triple {} from pre-installed rustc " .format (triple ))
193193 return triple
194194 except Exception as e :
195195 if verbose :
196- print ("rustup not detected: {}" .format (e ))
196+ print ("pre-installed rustc not detected: {}" .format (e ))
197197 print ("falling back to auto-detect" )
198198
199199 required = sys .platform != 'win32'
@@ -726,12 +726,15 @@ def maybe_download_ci_toolchain(self):
726726 status = subprocess .call (["git" , "diff-index" , "--quiet" , commit , "--" , compiler , library ])
727727 if status != 0 :
728728 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 ))
729732 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/" )
732735
733736 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 ))
735738 self .rustc_commit = commit
736739 # FIXME: support downloading artifacts from the beta channel
737740 self .download_toolchain (False , "nightly" )
0 commit comments