From 668fdff906889db2b5594913a5f28f93d6b36ba8 Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Mon, 13 Dec 2021 15:35:44 +0000 Subject: [PATCH] Support riscv64gc-unknown-freebsd (#642) --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index a268fbe7..8766329b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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());