Skip to content

Commit acbbcfc

Browse files
authored
Merge pull request #153 from connorworley/master
Support for the FRC toolchain
2 parents 5c75743 + 6d4d367 commit acbbcfc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,15 @@ impl Config {
612612
cmd.args.push("-marm".into());
613613
}
614614

615+
// We can guarantee some settings for FRC
616+
if target.starts_with("arm-frc-") {
617+
cmd.args.push("-march=armv7-a".into());
618+
cmd.args.push("-mcpu=cortex-a9".into());
619+
cmd.args.push("-mfpu=vfpv3".into());
620+
cmd.args.push("-mfloat-abi=softfp".into());
621+
cmd.args.push("-marm".into());
622+
}
623+
615624
// Turn codegen down on i586 to avoid some instructions.
616625
if target.starts_with("i586-unknown-linux-") {
617626
cmd.args.push("-march=pentium".into());
@@ -877,6 +886,7 @@ impl Config {
877886
let prefix = cross_compile.or(match &target[..] {
878887
"aarch64-unknown-linux-gnu" => Some("aarch64-linux-gnu"),
879888
"arm-unknown-linux-gnueabi" => Some("arm-linux-gnueabi"),
889+
"arm-frc-linux-gnueabi" => Some("arm-frc-linux-gnueabi"),
880890
"arm-unknown-linux-gnueabihf" => Some("arm-linux-gnueabihf"),
881891
"arm-unknown-linux-musleabi" => Some("arm-linux-musleabi"),
882892
"arm-unknown-linux-musleabihf" => Some("arm-linux-musleabihf"),

0 commit comments

Comments
 (0)