freebsd-ports/devel/bazel5/files/extra-patch-upb_bazel_build__defs.bzl
Doug Rabson 9e39f2af50 devel/bazel5: fix build on 14.0-RELEASE
This suppresses warnings about __builtin_offsetof which cause failures
due to the use of -Werror in some parts of the bazel build.

Approved by:	dch
Differential Revision: https://reviews.freebsd.org/D42729
2023-12-04 10:14:46 +00:00

18 lines
715 B
Python

--- bazel/build_defs.bzl.orig 2023-08-27 11:49:04.950868000 +0100
+++ bazel/build_defs.bzl 2023-08-27 11:51:17.441304000 +0100
@@ -35,6 +35,7 @@
# "-Wshorten-64-to-32", # not in GCC (and my Kokoro images doesn't have Clang)
"-Werror",
"-Wno-long-long",
+ "-Wno-deprecated-copy",
# copybara:strip_end
],
})
@@ -49,6 +50,7 @@
"-Werror=pedantic",
"-Wall",
"-Wstrict-prototypes",
+ "-Wno-gnu-offsetof-extensions",
# GCC (at least) emits spurious warnings for this that cannot be fixed
# without introducing redundant initialization (with runtime cost):
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635