build: remove wrong cfg condition in build.rs (#170)

This commit is contained in:
Perqin authored and GitHub committed 2021-05-03 17:27:45 +08:00
1 parent 10e600d27d
commit de4de722b1
1 file changed
+1 -9
+1 -9
View File
@@ -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" {