Update main.rs
This commit is contained in:
parent
5cd912df1d
commit
e23d2d16d4
|
|
@ -556,7 +556,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