From 515a0f10b0d8556fb2c6071d30c52c3eada43e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kul=C3=ADk?= Date: Fri, 21 Feb 2025 16:46:37 +0100 Subject: [PATCH] Fix platform tag on Solaris/Illumos --- src/build_context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build_context.rs b/src/build_context.rs index 52e79534d..c5029550e 100644 --- a/src/build_context.rs +++ b/src/build_context.rs @@ -562,7 +562,7 @@ impl BuildContext { let mut os = target.target_os().to_string().to_ascii_lowercase(); // See https://github.com/python/cpython/blob/46c8d915715aa2bd4d697482aa051fe974d440e1/Lib/sysconfig.py#L722-L730 - if os.starts_with("sunos") { + if target.target_os() == Os::Solaris || target.target_os() == Os::Illumos { // Solaris / Illumos if let Some((major, other)) = release.split_once('_') { let major_ver: u64 = major.parse().context("illumos major version is not a number")?;