Skip to content

Commit 7a1bfc2

Browse files
committed
Force arm-*-*-gnueabihf targets to armv6
See rust-lang/rust#31800
1 parent ee8af6a commit 7a1bfc2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,14 @@ impl Config {
447447
if target == "armv7-unknown-linux-gnueabihf" {
448448
cmd.args.push("-march=armv7-a".into());
449449
}
450+
if target == "arm-unknown-linux-gnueabihf" {
451+
cmd.args.push("-march=armv6".into());
452+
cmd.args.push("-marm".into());
453+
}
454+
if target == "arm-unknown-linux-gnueabi" {
455+
cmd.args.push("-march=armv6".into());
456+
cmd.args.push("-marm".into());
457+
}
450458
}
451459

452460
if self.cpp && !msvc {

0 commit comments

Comments
 (0)