Skip to content

Commit

Permalink
Add all possible features (NEON, FP) to aarch64 android target.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nercury committed May 14, 2016
1 parent 155faaf commit 39b311e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_back/target/aarch64_linux_android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ use target::Target;
pub fn target() -> Target {
let mut base = super::android_base::opts();
base.max_atomic_width = 128;
// As documented in http://developer.android.com/ndk/guides/cpu-features.html
// the neon (ASIMD) and FP must exist on all android aarch64 targets.
base.features = "+neon,+fp-armv8".to_string();
Target {
llvm_target: "aarch64-linux-android".to_string(),
target_endian: "little".to_string(),
Expand Down

0 comments on commit 39b311e

Please sign in to comment.