From e1dcc84cbca7066f9781f1ede15d1d85d9c0abcb Mon Sep 17 00:00:00 2001 From: Lean Mendoza Date: Mon, 28 Aug 2023 17:45:28 -0300 Subject: [PATCH] feat: support iOS build --- build.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build.rs b/build.rs index 27e134bf..8e30c396 100644 --- a/build.rs +++ b/build.rs @@ -181,6 +181,20 @@ fn build_v8() { maybe_install_sysroot("amd64"); }; + if target_triple == "aarch64-apple-ios" { + gn_args.push(r#"v8_target_cpu="arm64""#.to_string()); + gn_args.push("treat_warnings_as_errors=false".to_string()); + gn_args.push("ios_deployment_target=\"10\"".to_string()); + gn_args.push("is_component_build=false".to_string()); + gn_args.push("is_debug=false".to_string()); + gn_args.push("target_cpu=\"arm64\"".to_string()); + gn_args.push("target_os=\"ios\"".to_string()); + gn_args.push("use_custom_libcxx=false".to_string()); + gn_args.push("v8_enable_pointer_compression=false".to_string()); + gn_args.push("ios_enable_code_signing=false".to_string()); + gn_args.push("enable_ios_bitcode=false".to_string()); + } + if target_triple == "aarch64-linux-android" { gn_args.push(r#"v8_target_cpu="arm64""#.to_string()); gn_args.push(r#"target_os="android""#.to_string());