Browse Source

Add ARM support (#274)

remotes/origin/add-with-shims
Jay Thomas 5 years ago committed by GitHub
parent
commit
529037fbd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      src/system_info.rs

14
src/system_info.rs

@ -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"
}

Loading…
Cancel
Save