Skip to content

Commit

Permalink
Force arm-*-*-gnueabihf targets to armv6
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Feb 25, 2016
1 parent ee8af6a commit 7a1bfc2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,14 @@ impl Config {
if target == "armv7-unknown-linux-gnueabihf" {
cmd.args.push("-march=armv7-a".into());
}
if target == "arm-unknown-linux-gnueabihf" {
cmd.args.push("-march=armv6".into());
cmd.args.push("-marm".into());
}
if target == "arm-unknown-linux-gnueabi" {
cmd.args.push("-march=armv6".into());
cmd.args.push("-marm".into());
}
}

if self.cpp && !msvc {
Expand Down

0 comments on commit 7a1bfc2

Please sign in to comment.