git: a852acb91b28 - main - www/deno: Fix build on aarch64

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Fri, 14 Jun 2024 14:37:05 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a852acb91b2829636236f6e098c35e494a3f8c32

commit a852acb91b2829636236f6e098c35e494a3f8c32
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2024-06-14 12:43:46 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2024-06-14 14:36:59 +0000

    www/deno: Fix build on aarch64
---
 www/deno/files/patch-cargo-crates_v8_build.rs | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/www/deno/files/patch-cargo-crates_v8_build.rs b/www/deno/files/patch-cargo-crates_v8_build.rs
index b8f21f3d635b..0c9baab260d1 100644
--- a/www/deno/files/patch-cargo-crates_v8_build.rs
+++ b/www/deno/files/patch-cargo-crates_v8_build.rs
@@ -1,6 +1,21 @@
 --- cargo-crates/v8-0.92.0/build.rs.orig	2020-07-22 09:53:02 UTC
 +++ cargo-crates/v8-0.92.0/build.rs
-@@ -268,6 +268,8 @@ fn platform() -> String {
+@@ -199,10 +199,10 @@ fn build_v8(is_asan: bool) {
+   }
+   // cross-compilation setup
+   if target_arch == "aarch64" {
+-    gn_args.push(r#"target_cpu="arm64""#.to_string());
+-    gn_args.push("use_sysroot=true".to_string());
+-    maybe_install_sysroot("arm64");
+-    maybe_install_sysroot("amd64");
++    // gn_args.push(r#"target_cpu="arm64""#.to_string());
++    gn_args.push("use_sysroot=false".to_string());
++    // maybe_install_sysroot("arm64");
++    // maybe_install_sysroot("amd64");
+   }
+   if target_arch == "arm" {
+     gn_args.push(r#"target_cpu="arm""#.to_string());
+@@ -326,6 +326,8 @@ fn host_platform() -> String {
      "mac"
    } else if cfg!(target_os = "windows") {
      "windows"