Bazel: fix Brotli build with recent versions of Clang/GCC. Change-Id: I7a9f563cf1acb9007197f003dc0c025a73d57e85 Signed-off-by: Piotr Sikora <piotrsikora@google.com> Reviewed-on: https://nginx-review.googlesource.com/c/nginx/+/4003 Reviewed-by: Patryk Lesiewicz <patryk@google.com>
diff --git a/bazel/external/brotli.patch b/bazel/external/brotli.patch new file mode 100644 index 0000000..755ee43 --- /dev/null +++ b/bazel/external/brotli.patch
@@ -0,0 +1,12 @@ +--- BUILD ++++ BUILD +@@ -18,6 +18,9 @@ + "-Wlong-long", + "-Wmissing-declarations", + "-Wmissing-prototypes", ++ "-Wno-implicit-int-float-conversion", + "-Wno-strict-aliasing", ++ "-Wno-unknown-warning-option", ++ "-Wno-vla-parameter", + "-Wshadow", + "-Wsign-compare",
diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 0090c5a..16176d0 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl
@@ -85,4 +85,5 @@ commit = "222564a95d9ab58865a096b8d9f7324ea5f2e03e", # 2016-12-02 remote = "https://github.com/google/brotli.git", shallow_since = "1480681940 +0100", + patches = ["@nginx//bazel/external:brotli.patch"], )