Skip to content

Commit

Permalink
Return x64-musl for built musl binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricionaweb committed Oct 7, 2024
1 parent 60c6fd8 commit 07f99aa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/system_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,18 @@ pub fn platform_arch() -> &'static str {

#[cfg(all(
target_pointer_width = "64",
not(target_env = "musl"),
not(any(target_arch = "arm", target_arch = "aarch64"))
))]
pub fn platform_arch() -> &'static str {
"x64"
}

#[cfg(all(
target_pointer_width = "64",
target_env = "musl",
not(any(target_arch = "arm", target_arch = "aarch64"))
))]
pub fn platform_arch() -> &'static str {
"x64-musl"
}

0 comments on commit 07f99aa

Please sign in to comment.