Browse Source

Merge pull request #361 from piersfinlayson/master

Generate valid intructions on ARMv6 (see rust-lang/rust issue #50583)
wasi
Alex Crichton 6 years ago
committed by GitHub
parent
commit
bb09ed2749
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/lib.rs

5
src/lib.rs

@ -1249,6 +1249,11 @@ impl Build {
if target.starts_with("arm-unknown-linux-") {
cmd.args.push("-march=armv6".into());
cmd.args.push("-marm".into());
if target.ends_with("hf") {
cmd.args.push("-mfpu=vfp".into());
} else {
cmd.args.push("-mfloat-abi=soft".into());
}
}
// We can guarantee some settings for FRC

Loading…
Cancel
Save