Skip to content

Commit 0361a4b

Browse files
committed
build: fix freebsd support
1 parent 8d506ca commit 0361a4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ fn main() {
3333
println!("cargo:rustc-link-lib=static=randomx");
3434
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap_or("linux".to_string());
3535
let dylib_name = match target_os.as_str() {
36-
"macos" | "ios" => "c++", // macOS and iOS use "c++"
37-
"windows" => "msvcrt", // Use MSVC runtime on Windows
38-
_ => "stdc++", // Default for other systems (Linux, etc.)
36+
"freebsd" | "macos" | "ios" => "c++", // FreeBSD, macOS and iOS use "c++"
37+
"windows" => "msvcrt", // Use MSVC runtime on Windows
38+
_ => "stdc++", // Default for other systems (Linux, etc.)
3939
};
4040
println!("cargo:rustc-link-lib=dylib={}", dylib_name);
4141

0 commit comments

Comments
 (0)