Skip to content

Commit

Permalink
Exclude target_os=android from C GFp_cpuid_setup init
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallpierce committed Jan 19, 2017
1 parent 69763c4 commit 350fb4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ extern {
// On other platforms (excluding iOS aarch64), use C feature detection.

#[cfg(all(not(all(target_arch = "aarch64", target_os = "ios")),
not(all(any(target_arch = "arm", target_arch = "aarch64"), target_os = "linux"))))]
not(all(any(target_arch = "arm", target_arch = "aarch64"),
any(target_os = "linux", target_os = "android")))))]
extern {
fn GFp_cpuid_setup();
}

#[cfg(all(not(all(target_arch = "aarch64", target_os = "ios")),
not(all(any(target_arch = "arm", target_arch = "aarch64"), target_os = "linux"))))]
not(all(any(target_arch = "arm", target_arch = "aarch64"),
any(target_os = "linux", target_os = "android")))))]
fn set_cpu_features() {
unsafe { GFp_cpuid_setup() }
}

0 comments on commit 350fb4a

Please sign in to comment.