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:
parent
f8918297cc
commit
e47d09e242
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue