Skip to content

Commit

Permalink
Parse the deployment target on all Apple target triples (#113)
Browse files Browse the repository at this point in the history
* Parse the deployment target on all Apple target triples

Also allow it to be optional, or partially specified.

* Add OperatingSystem::is_like_darwin

To more easily determine if the OS is of Darwin lineage.

* Define an ordering for DeploymentTarget
  • Loading branch information
madsmtm authored Oct 11, 2024
1 parent 7c80d45 commit 61922cd
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 55 deletions.
2 changes: 1 addition & 1 deletion src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ mod tests {
#[test]
fn test_macos() {
use super::*;
assert_eq!(OperatingSystem::host(), OperatingSystem::Darwin);
assert_eq!(OperatingSystem::host(), OperatingSystem::Darwin(None));
}

#[cfg(windows)]
Expand Down
Loading

0 comments on commit 61922cd

Please sign in to comment.