Skip to content

Commit 4402ef5

Browse files
committed
Make rustc-perf work on Windows again
1 parent 7ec95c0 commit 4402ef5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

collector/src/bin/collector.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,7 @@ fn main_result() -> anyhow::Result<i32> {
794794
runtime: &runtime_benchmark_dir,
795795
};
796796

797-
// This clearly won't work for all architectures, but should be good enough for x64 Linux
798-
// and ARM 64-bit Linux.
799-
let host_target_tuple = format!("{}-unknown-linux-gnu", std::env::consts::ARCH);
797+
let host_target_tuple = String::from_utf8(command_output(Command::new("rustc").arg("--print=host-tuple"))?.stdout)?.trim().to_string();
800798

801799
match args.command {
802800
Commands::BinaryStats { mode, symbols } => {

0 commit comments

Comments
 (0)