Skip to content

Commit

Permalink
Require +thumb-mode to generate thumb2 code for Android/armv7-a
Browse files Browse the repository at this point in the history
  • Loading branch information
makotokato committed Sep 15, 2017
1 parent 1cf956f commit 07494ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_back/target/armv7_linux_androideabi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use target::{Target, TargetOptions, TargetResult};

pub fn target() -> TargetResult {
let mut base = super::android_base::opts();
base.features = "+v7,+thumb2,+vfp3,+d16,-neon".to_string();
base.features = "+v7,+thumb-mode,+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());
Expand Down

0 comments on commit 07494ec

Please sign in to comment.