Skip to content

Commit 15e4969

Browse files
committed
bootstrap: skip r-a main tests against 32-bit targets
We don't really have a good way to get the target pointer width in bootstrap (yet), so I had to resort to hacky target tuple substring matches. This commit currently only gates on `i686-*` targets, which are 32-bits, and does not try to gate on `i586-*` targets (I need to run try jobs to check if r-a tests actually get run.)
1 parent 24f00b6 commit 15e4969

File tree

1 file changed

+13
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+13
-0
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,19 @@ impl Step for RustAnalyzer {
468468
let build_compiler = self.compilers.build_compiler();
469469
let target = self.compilers.target();
470470

471+
// NOTE: rust-analyzer repo currently (as of 2025-12-11) does not run tests against 32-bit
472+
// targets, so we also don't run them in rust-lang/rust CI (because that will just mean that
473+
// subtree syncs will keep getting 32-bit-specific failures that are not observed in
474+
// rust-analyzer repo CI).
475+
//
476+
// Some 32-bit specific failures include e.g. target pointer width specific hashes.
477+
478+
// FIXME: eventually, we should probably reduce the amount of target tuple substring
479+
// matching in bootstrap.
480+
if target.starts_with("i686") {
481+
return;
482+
}
483+
471484
let mut cargo = tool::prepare_tool_cargo(
472485
builder,
473486
build_compiler,

0 commit comments

Comments
 (0)