From 8867e3dd66bf81b046c2c42b5e192f45bf7ac60f Mon Sep 17 00:00:00 2001 From: jeremyd2019 Date: Thu, 4 Apr 2024 10:03:18 -0700 Subject: [PATCH] Exclude -gnullvm target from i686_gnu build.rs This was missed in #2774, even though the similar check was added to x86_64_gnu, presumably because there was no handling for i686-pc-windows-gnullvm at that time. --- crates/targets/i686_gnu/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/targets/i686_gnu/build.rs b/crates/targets/i686_gnu/build.rs index d10600d9d7..6da3be5e46 100644 --- a/crates/targets/i686_gnu/build.rs +++ b/crates/targets/i686_gnu/build.rs @@ -2,7 +2,8 @@ fn main() { let family = std::env::var("CARGO_CFG_TARGET_FAMILY").unwrap(); let arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap(); let env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap(); - if family != "windows" || arch != "x86" || env != "gnu" { + let target = std::env::var("TARGET").unwrap(); + if family != "windows" || arch != "x86" || env != "gnu" || !target.ends_with("-gnu") { return; }