condense if statement tree
This commit is contained in:
parent
7350453ffe
commit
a329e0fa58
|
@ -83,11 +83,7 @@ fn main() {
|
||||||
fn get_cpp_link_stdlib(target: &str) -> Option<&'static str> {
|
fn get_cpp_link_stdlib(target: &str) -> Option<&'static str> {
|
||||||
if target.contains("msvc") {
|
if target.contains("msvc") {
|
||||||
None
|
None
|
||||||
} else if target.contains("apple") {
|
} else if target.contains("apple") || target.contains("freebsd") || target.contains("openbsd") {
|
||||||
Some("c++")
|
|
||||||
} else if target.contains("freebsd") {
|
|
||||||
Some("c++")
|
|
||||||
} else if target.contains("openbsd") {
|
|
||||||
Some("c++")
|
Some("c++")
|
||||||
} else if target.contains("android") {
|
} else if target.contains("android") {
|
||||||
Some("c++_shared")
|
Some("c++_shared")
|
||||||
|
|
Loading…
Reference in New Issue