Skip to content

Commit 668fdff

Browse files
author
Tobias Kortkamp
authored
Support riscv64gc-unknown-freebsd (#642)
1 parent 400610a commit 668fdff

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
@@ -1788,6 +1788,9 @@ impl Build {
17881788
if target.contains("linux") && arch.starts_with("64") {
17891789
cmd.args.push(("-march=rv64gc").into());
17901790
cmd.args.push("-mabi=lp64d".into());
1791+
} else if target.contains("freebsd") && arch.starts_with("64") {
1792+
cmd.args.push(("-march=rv64gc").into());
1793+
cmd.args.push("-mabi=lp64d".into());
17911794
} else if target.contains("linux") && arch.starts_with("32") {
17921795
cmd.args.push(("-march=rv32gc").into());
17931796
cmd.args.push("-mabi=ilp32d".into());

0 commit comments

Comments
 (0)