From e622479c76b1fdcc020e9c26cac1893d88c47ed2 Mon Sep 17 00:00:00 2001 From: chyyran Date: Fri, 16 Feb 2024 00:33:03 -0500 Subject: [PATCH] build: ignore rust-version if using RUSTC_BOOTSTRAP --- librashader-build-script/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/librashader-build-script/src/main.rs b/librashader-build-script/src/main.rs index 2cb2b85..68cb4aa 100644 --- a/librashader-build-script/src/main.rs +++ b/librashader-build-script/src/main.rs @@ -35,6 +35,11 @@ pub fn main() { if profile == "debug" { "dev" } else { &profile } )); + // If we're on RUSTC_BOOTSTRAP, it's likely because we're building for a package.. + if env::var("RUSTC_BOOTSTRAP").is_ok() { + cmd.arg("--ignore-rust-version"); + } + if let Some(target) = &args.target { cmd.arg(format!("--target={}", &target)); }