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> {
|
||||
if target.contains("msvc") {
|
||||
None
|
||||
} else if target.contains("apple") {
|
||||
Some("c++")
|
||||
} else if target.contains("freebsd") {
|
||||
Some("c++")
|
||||
} else if target.contains("openbsd") {
|
||||
} else if target.contains("apple") || target.contains("freebsd") || target.contains("openbsd") {
|
||||
Some("c++")
|
||||
} else if target.contains("android") {
|
||||
Some("c++_shared")
|
||||
|
|
Loading…
Reference in New Issue