Skip to content

Commit 8647906

Browse files
committed
hack(cli/common): suppress host emulation warnings in rustup's own CI
1 parent 42abfad commit 8647906

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cli/common.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,11 @@ pub(crate) fn check_non_host_toolchain(
630630

631631
/// Warns if rustup is running under emulation, such as macOS Rosetta
632632
pub(crate) fn warn_if_host_is_emulated(process: &Process) {
633+
// In rustup's own CI, we wouldn't want host emulation warnings to mess up the
634+
// end-to-end test results.
635+
if process.var("RUSTUP_CI").is_ok() {
636+
return;
637+
}
633638
if TargetTriple::is_host_emulated() {
634639
warn!(
635640
"Rustup is not running natively. It's running under emulation of {}.",

0 commit comments

Comments
 (0)