Skip to content

Commit

Permalink
rustc: Link to Android ABI requirements.
Browse files Browse the repository at this point in the history
Hopefully these references will be stable and provide guidance
when requirements change in the future.
  • Loading branch information
rillian committed Dec 16, 2016
1 parent e900f6c commit 9e01f76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_back/target/aarch64_linux_android.rs
Expand Up @@ -10,6 +10,9 @@

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

// See https://developer.android.com/ndk/guides/abis.html#arm64-v8a
// for target ABI requirements.

pub fn target() -> TargetResult {
let mut base = super::android_base::opts();
base.max_atomic_width = Some(128);
Expand Down
3 changes: 3 additions & 0 deletions src/librustc_back/target/armv7_linux_androideabi.rs
Expand Up @@ -10,6 +10,9 @@

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

// See https://developer.android.com/ndk/guides/abis.html#v7a
// for target ABI requirements.

pub fn target() -> TargetResult {
let mut base = super::android_base::opts();
base.features = "+v7,+thumb2,+vfp3,+d16,-neon".to_string();
Expand Down
3 changes: 3 additions & 0 deletions src/librustc_back/target/i686_linux_android.rs
Expand Up @@ -10,6 +10,9 @@

use target::{Target, TargetResult};

// See https://developer.android.com/ndk/guides/abis.html#x86
// for target ABI requirements.

pub fn target() -> TargetResult {
let mut base = super::android_base::opts();

Expand Down

0 comments on commit 9e01f76

Please sign in to comment.