From 4fa1ef7c98130d8b3713c9294dff1cf331b6ac8f Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 19 Apr 2026 20:49:19 +0200 Subject: [PATCH] Fix building bootstrap for i586 --- bootstrap/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap/build.rs b/bootstrap/build.rs index 1e21a8d0f5..dae28f09ff 100644 --- a/bootstrap/build.rs +++ b/bootstrap/build.rs @@ -2,7 +2,10 @@ use std::env; fn main() { let manifest_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); - let arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap(); + let mut arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap(); + if arch == "x86" { + arch = "i586".to_owned(); + } println!("cargo::rustc-link-arg=-z"); println!("cargo::rustc-link-arg=max-page-size=4096");