We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1b8b3 commit 2a89d7bCopy full SHA for 2a89d7b
build.rs
@@ -35,9 +35,9 @@ fn main() {
35
println!("cargo:rustc-link-lib=static=randomx");
36
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap_or("linux".to_string());
37
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.)
+ "freebsd" | "macos" | "ios" => "c++", // FreeBSD, macOS and iOS use "c++"
+ "windows" => "msvcrt", // Use MSVC runtime on Windows
+ _ => "stdc++", // Default for other systems (Linux, etc.)
41
};
42
println!("cargo:rustc-link-lib=dylib={}", dylib_name);
43
0 commit comments