Skip to content

Commit

Permalink
Support riscv64gc-unknown-freebsd (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Kortkamp authored Dec 13, 2021
1 parent 400610a commit 668fdff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,9 @@ impl Build {
if target.contains("linux") && arch.starts_with("64") {
cmd.args.push(("-march=rv64gc").into());
cmd.args.push("-mabi=lp64d".into());
} else if target.contains("freebsd") && arch.starts_with("64") {
cmd.args.push(("-march=rv64gc").into());
cmd.args.push("-mabi=lp64d".into());
} else if target.contains("linux") && arch.starts_with("32") {
cmd.args.push(("-march=rv32gc").into());
cmd.args.push("-mabi=ilp32d".into());
Expand Down

0 comments on commit 668fdff

Please sign in to comment.