We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea3cbc4 commit 16835bbCopy full SHA for 16835bb
src/sdk.rs
@@ -738,8 +738,16 @@ fn download_xwin(dest: &Path) -> Result<(), Box<dyn std::error::Error>> {
738
.iter()
739
.find(|value| {
740
value.get("name").is_some_and(|v| {
741
- v.as_str()
742
- .is_some_and(|v| v.ends_with("x86_64-unknown-linux-musl.tar.gz"))
+ v.as_str().is_some_and(|v| {
+ v.ends_with(
743
+ #[cfg(all(target_os = "macos", target_arch = "aarch64"))]
744
+ "aarch64-apple-darwin.tar.gz",
745
+ #[cfg(all(target_os = "macos", target_arch = "x86_64"))]
746
+ "x86_64-apple-darwin.tar.gz",
747
+ #[cfg(not(target_os = "macos"))]
748
+ "x86_64-unknown-linux-musl.tar.gz",
749
+ )
750
+ })
751
})
752
});
753
0 commit comments