Skip to content

Commit

Permalink
Add -march=armv7-a parameter to armv7 android linker
Browse files Browse the repository at this point in the history
  • Loading branch information
malbarbo committed Apr 30, 2017
1 parent ad1461e commit 9896483
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_back/target/armv7_linux_androideabi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ pub fn target() -> TargetResult {
let mut base = super::android_base::opts();
base.features = "+v7,+thumb2,+vfp3,+d16,-neon".to_string();
base.max_atomic_width = Some(64);
base.pre_link_args
.get_mut(&LinkerFlavor::Gcc).unwrap().push("-march=armv7-a".to_string());

Ok(Target {
llvm_target: "armv7-none-linux-android".to_string(),
Expand Down

0 comments on commit 9896483

Please sign in to comment.