From c5a1891091d2456ebb39d439c258da1fbb4f25aabd45bd8a4239c1feae8aff86 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Sun, 19 Jun 2022 17:06:01 +0000 Subject: [PATCH] patch to remove -no-opaque-pointers OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=70 --- deno.spec | 1 + fix-cflags.patch | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 fix-cflags.patch diff --git a/deno.spec b/deno.spec index 197fce2..931ce5d 100644 --- a/deno.spec +++ b/deno.spec @@ -28,6 +28,7 @@ URL: https://github.com/denoland/deno Source0: %{name}-%{version}.tar.xz Source1: vendor.tar.xz Source99: revendor_source.sh +Patch0: fix-cflags.patch BuildRequires: clang # gcc-c++ needed to build SPIRV-Cross BuildRequires: gcc-c++ diff --git a/fix-cflags.patch b/fix-cflags.patch new file mode 100644 index 0000000..155ab3d --- /dev/null +++ b/fix-cflags.patch @@ -0,0 +1,20 @@ +diff --git a/vendor/v8/build/config/compiler/BUILD.gn b/vendor/v8/build/config/compiler/BUILD.gn +index 9cdafb2..211684c 100644 +--- a/vendor/v8/build/config/compiler/BUILD.gn ++++ b/vendor/v8/build/config/compiler/BUILD.gn +@@ -1548,15 +1548,6 @@ config("default_warnings") { + cflags += [ "-Wno-unqualified-std-cast-call" ] + } + +- if (!is_nacl && !(is_chromeos || +- default_toolchain == "//build/toolchain/cros:target")) { +- # 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" ]