From a68520df08b6a6e3ae282165881579dbf8906cf0 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Wed, 25 May 2022 14:30:19 +0800 Subject: [PATCH] fix: bridge compilation --- build.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.rs b/build.rs index 0f734715a..aaf0858c1 100644 --- a/build.rs +++ b/build.rs @@ -82,11 +82,11 @@ fn main() { hbb_common::gen_version(); install_oboe(); // there is problem with cfg(target_os) in build.rs, so use our workaround - let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap(); - if target_os == "android" || target_os == "ios" { + // let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap(); + // if target_os == "android" || target_os == "ios" { gen_flutter_rust_bridge(); - return; - } + // return; + // } #[cfg(all(windows, feature = "inline"))] build_manifest(); #[cfg(windows)]