Skip to content

Commit 39b311e

Browse files
committed
Add all possible features (NEON, FP) to aarch64 android target.
1 parent 155faaf commit 39b311e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_back/target/aarch64_linux_android.rs

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ use target::Target;
1313
pub fn target() -> Target {
1414
let mut base = super::android_base::opts();
1515
base.max_atomic_width = 128;
16+
// As documented in http://developer.android.com/ndk/guides/cpu-features.html
17+
// the neon (ASIMD) and FP must exist on all android aarch64 targets.
18+
base.features = "+neon,+fp-armv8".to_string();
1619
Target {
1720
llvm_target: "aarch64-linux-android".to_string(),
1821
target_endian: "little".to_string(),

0 commit comments

Comments
 (0)