feat: add support for FreeBSD (#83)

* feat: add support for FreeBSD

---------

Co-authored-by: zebrapurring <>
Co-authored-by: 0x676e67 <gngppz@gmail.com>
This commit is contained in:
zebrapurring 2025-06-23 17:14:01 +02:00 committed by GitHub
parent f8918297cc
commit e47d09e242
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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