Skip to content

Commit 9e01f76

Browse files
committed
rustc: Link to Android ABI requirements.
Hopefully these references will be stable and provide guidance when requirements change in the future.
1 parent e900f6c commit 9e01f76

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/librustc_back/target/aarch64_linux_android.rs

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
use target::{Target, TargetOptions, TargetResult};
1212

13+
// See https://developer.android.com/ndk/guides/abis.html#arm64-v8a
14+
// for target ABI requirements.
15+
1316
pub fn target() -> TargetResult {
1417
let mut base = super::android_base::opts();
1518
base.max_atomic_width = Some(128);

src/librustc_back/target/armv7_linux_androideabi.rs

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
use target::{Target, TargetOptions, TargetResult};
1212

13+
// See https://developer.android.com/ndk/guides/abis.html#v7a
14+
// for target ABI requirements.
15+
1316
pub fn target() -> TargetResult {
1417
let mut base = super::android_base::opts();
1518
base.features = "+v7,+thumb2,+vfp3,+d16,-neon".to_string();

src/librustc_back/target/i686_linux_android.rs

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
use target::{Target, TargetResult};
1212

13+
// See https://developer.android.com/ndk/guides/abis.html#x86
14+
// for target ABI requirements.
15+
1316
pub fn target() -> TargetResult {
1417
let mut base = super::android_base::opts();
1518

0 commit comments

Comments
 (0)