Skip to content

Commit 07494ec

Browse files
committed
Require +thumb-mode to generate thumb2 code for Android/armv7-a
1 parent 1cf956f commit 07494ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_back/target/armv7_linux_androideabi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use target::{Target, TargetOptions, TargetResult};
1616

1717
pub fn target() -> TargetResult {
1818
let mut base = super::android_base::opts();
19-
base.features = "+v7,+thumb2,+vfp3,+d16,-neon".to_string();
19+
base.features = "+v7,+thumb-mode,+thumb2,+vfp3,+d16,-neon".to_string();
2020
base.max_atomic_width = Some(64);
2121
base.pre_link_args
2222
.get_mut(&LinkerFlavor::Gcc).unwrap().push("-march=armv7-a".to_string());

0 commit comments

Comments
 (0)