git: 6d2357bf5fa4 - main - games/punchy: unbreak build with clang 17

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 19 Dec 2023 13:23:15 UTC
The branch main has been updated by jbeich:

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

commit 6d2357bf5fa4901e32cb73e6a974fd426bd5c439
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-12-19 12:03:53 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-12-19 13:22:46 +0000

    games/punchy: unbreak build with clang 17
    
      error: unknown argument: '-no-opaque-pointers'
    
    Reported by:    pkg-fallout
---
 games/punchy/files/patch-clang17 | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/games/punchy/files/patch-clang17 b/games/punchy/files/patch-clang17
new file mode 100644
index 000000000000..0f5913ede690
--- /dev/null
+++ b/games/punchy/files/patch-clang17
@@ -0,0 +1,23 @@
+https://github.com/llvm/llvm-project/commit/066fb7a58c5a
+https://github.com/denoland/chromium_build/commit/67a6e3e79577
+https://github.com/denoland/rusty_v8/commit/0e09f12eca47
+
+--- cargo-crates/v8-0.47.1/build/config/compiler/BUILD.gn.orig	1970-01-01 00:00:00 UTC
++++ cargo-crates/v8-0.47.1/build/config/compiler/BUILD.gn
+@@ -1564,16 +1564,6 @@ config("default_warnings") {
+         cflags += [ "-Wno-unqualified-std-cast-call" ]
+       }
+ 
+-      if (!is_nacl && !(is_chromeos ||
+-                        default_toolchain == "//build/toolchain/cros:target") &&
+-          clang_major_version >= 15) {
+-        # TODO(https://crbug.com/1316298): Re-enable once test failure is figured out
+-        cflags += [
+-          "-Xclang",
+-          "-no-opaque-pointers",
+-        ]
+-      }
+-
+       if (is_fuchsia) {
+         # TODO(https://bugs.chromium.org/p/fuchsia/issues/detail?id=77383)
+         cflags += [ "-Wno-deprecated-copy" ]