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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
src/lib.rs
|
@ -1249,6 +1249,11 @@ impl Build { |
|
|
if target.starts_with("arm-unknown-linux-") { |
|
|
if target.starts_with("arm-unknown-linux-") { |
|
|
cmd.args.push("-march=armv6".into()); |
|
|
cmd.args.push("-march=armv6".into()); |
|
|
cmd.args.push("-marm".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
|
|
|
// We can guarantee some settings for FRC
|
|
|