From de4de722b15fc44d7f7d5c9919597e5923644c19 Mon Sep 17 00:00:00 2001 From: Perqin Date: Mon, 3 May 2021 17:27:45 +0800 Subject: [PATCH] build: remove wrong cfg condition in build.rs (#170) --- leaf/build.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/leaf/build.rs b/leaf/build.rs index f72dbe1..93e0fc9 100644 --- a/leaf/build.rs +++ b/leaf/build.rs @@ -131,15 +131,7 @@ fn generate_mobile_bindings() { } fn main() { - #[cfg(all( - feature = "inbound-tun", - any( - target_os = "ios", - target_os = "android", - target_os = "macos", - target_os = "linux" - ) - ))] + #[cfg(feature = "inbound-tun")] { let os = env::var("CARGO_CFG_TARGET_OS").unwrap(); if os == "ios" || os == "android" || os == "linux" || os == "macos" {