Skip to content

Commit 2a89d7b

Browse files
authored
build: fix freebsd support (#79)
1 parent 3e1b8b3 commit 2a89d7b

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
@@ -35,9 +35,9 @@ fn main() {
3535
println!("cargo:rustc-link-lib=static=randomx");
3636
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap_or("linux".to_string());
3737
let dylib_name = match target_os.as_str() {
38-
"macos" | "ios" => "c++", // macOS and iOS use "c++"
39-
"windows" => "msvcrt", // Use MSVC runtime on Windows
40-
_ => "stdc++", // Default for other systems (Linux, etc.)
38+
"freebsd" | "macos" | "ios" => "c++", // FreeBSD, macOS and iOS use "c++"
39+
"windows" => "msvcrt", // Use MSVC runtime on Windows
40+
_ => "stdc++", // Default for other systems (Linux, etc.)
4141
};
4242
println!("cargo:rustc-link-lib=dylib={}", dylib_name);
4343

0 commit comments

Comments
 (0)