From a329e0fa585f7739106f34120032ee002aae5929 Mon Sep 17 00:00:00 2001 From: 0/0 Date: Wed, 8 Feb 2023 16:24:51 -0700 Subject: [PATCH] condense if statement tree --- sys/build.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/build.rs b/sys/build.rs index 5c0858a..56647ce 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -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")