|
|
|
@ -8,12 +8,22 @@ pub fn platform_name() -> &'static str {
@@ -8,12 +8,22 @@ pub fn platform_name() -> &'static str {
|
|
|
|
|
"linux" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[cfg(target_pointer_width = "32")] |
|
|
|
|
#[cfg(all(target_pointer_width = "32", target_arch = "arm"))] |
|
|
|
|
pub fn platform_arch() -> &'static str { |
|
|
|
|
"armv7l" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[cfg(all(target_pointer_width = "32", not(target_arch = "arm")))] |
|
|
|
|
pub fn platform_arch() -> &'static str { |
|
|
|
|
"x86" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[cfg(target_pointer_width = "64")] |
|
|
|
|
#[cfg(all(target_pointer_width = "64", target_arch = "arm"))] |
|
|
|
|
pub fn platform_arch() -> &'static str { |
|
|
|
|
"arm64" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#[cfg(all(target_pointer_width = "64", not(target_arch = "arm")))] |
|
|
|
|
pub fn platform_arch() -> &'static str { |
|
|
|
|
"x64" |
|
|
|
|
} |
|
|
|
|