Skip to content

Commit

Permalink
Support riscv64-unknown-openbsd (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
semarie authored Dec 20, 2021
1 parent 4ce8275 commit 795a12d
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 @@ -1790,6 +1790,9 @@ impl Build {
} 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("openbsd") && 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 795a12d

Please sign in to comment.