From dcaa27c7a9fa339bf70ca9f3f9ee3561272a44f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 10 Oct 2025 12:51:53 +0200 Subject: [PATCH] Make rustc-perf work on Windows again --- collector/src/bin/collector.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/collector/src/bin/collector.rs b/collector/src/bin/collector.rs index cd8555c4d..dff2c9346 100644 --- a/collector/src/bin/collector.rs +++ b/collector/src/bin/collector.rs @@ -794,9 +794,10 @@ fn main_result() -> anyhow::Result { runtime: &runtime_benchmark_dir, }; - // This clearly won't work for all architectures, but should be good enough for x64 Linux - // and ARM 64-bit Linux. - let host_target_tuple = format!("{}-unknown-linux-gnu", std::env::consts::ARCH); + let host_target_tuple = + String::from_utf8(command_output(Command::new("rustc").arg("--print=host-tuple"))?.stdout)? + .trim() + .to_string(); match args.command { Commands::BinaryStats { mode, symbols } => {