patch to remove -no-opaque-pointers

OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=70
This commit is contained in:
Avindra Goolcharan 2022-06-19 17:06:01 +00:00 committed by Git OBS Bridge
parent 2d9a9544f1
commit c5a1891091
2 changed files with 21 additions and 0 deletions

View File

@ -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++

20
fix-cflags.patch Normal file
View File

@ -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" ]