From 0efdac111d009583d3689ec0d180bd33954cddb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Rakic?= Date: Thu, 5 Sep 2024 14:00:27 +0000 Subject: [PATCH] disable bootstrap stage0 target checks --- collector/src/compile/execute/rustc.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/collector/src/compile/execute/rustc.rs b/collector/src/compile/execute/rustc.rs index 49aec2a1a..d42e2bd2c 100644 --- a/collector/src/compile/execute/rustc.rs +++ b/collector/src/compile/execute/rustc.rs @@ -112,6 +112,9 @@ async fn record( ) .current_dir(checkout) .env("RUSTC_PERF_REAL_RUSTC", &toolchain.components.rustc) + // When overriding the stage0 compiler, we want to avoid bootstrap's target checks. See + // https://github.com/rust-lang/rust/pull/129651 for more details. + .env("BOOTSTRAP_SKIP_TARGET_SANITY", "1") .arg("build") .arg("--stage") .arg("0")