Update main.rs

This commit is contained in:
Jaap Aarts 2025-10-14 22:31:38 +02:00 committed by Kornel
parent 5cd912df1d
commit e23d2d16d4
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ fn get_cpp_runtime_lib(config: &Config) -> Option<String> {
// TODO(rmehra): figure out how to do this for windows
if env::var_os("CARGO_CFG_UNIX").is_some() {
match env::var("CARGO_CFG_TARGET_OS").unwrap().as_ref() {
"macos" | "ios" => Some("c++".into()),
"macos" | "ios" | "freebsd" => Some("c++".into()),
_ => Some("stdc++".into()),
}
} else {