Browse Source

Force arm-*-*-gnueabihf targets to armv6

See rust-lang/rust#31800
add-rc-path
Alex Crichton 9 years ago
parent
commit
7a1bfc2a9a
  1. 8
      src/lib.rs

8
src/lib.rs

@ -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 {

Loading…
Cancel
Save