condense if statement tree

This commit is contained in:
0/0 2023-02-08 16:24:51 -07:00
parent 7350453ffe
commit a329e0fa58
No known key found for this signature in database
GPG Key ID: 3861E636EA1E0E2B
1 changed files with 1 additions and 5 deletions

View File

@ -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")