Skip to content

Commit 795a12d

Browse files
authored
Support riscv64-unknown-openbsd (#643)
1 parent 4ce8275 commit 795a12d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,9 @@ impl Build {
17901790
} else if target.contains("freebsd") && arch.starts_with("64") {
17911791
cmd.args.push(("-march=rv64gc").into());
17921792
cmd.args.push("-mabi=lp64d".into());
1793+
} else if target.contains("openbsd") && arch.starts_with("64") {
1794+
cmd.args.push(("-march=rv64gc").into());
1795+
cmd.args.push("-mabi=lp64d".into());
17931796
} else if target.contains("linux") && arch.starts_with("32") {
17941797
cmd.args.push(("-march=rv32gc").into());
17951798
cmd.args.push("-mabi=ilp32d".into());

0 commit comments

Comments
 (0)