mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-16 19:16:42 +02:00
25 lines
615 B
Diff
25 lines
615 B
Diff
Return arch x64-musl
|
|
|
|
diff --git a/src/system_info.rs b/src/system_info.rs
|
|
index 1d6665c..56f63ed 100644
|
|
--- a/src/system_info.rs
|
|
+++ b/src/system_info.rs
|
|
@@ -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"
|
|
+}
|