Skip to content

Commit

Permalink
Fix platform tag on Solaris/Illumos
Browse files Browse the repository at this point in the history
  • Loading branch information
kulikjak committed Feb 21, 2025
1 parent 865f965 commit 515a0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?;
Expand Down

0 comments on commit 515a0f1

Please sign in to comment.