Bazel: add default (strict) compiler flags.
Change-Id: I7c908c628213545f71f623a39e83d887bfc2346d
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Reviewed-on: https://nginx-review.googlesource.com/1151
Reviewed-by: Martin Maly <mmaly@google.com>
diff --git a/BUILD b/BUILD
index c391771..e89e15b 100644
--- a/BUILD
+++ b/BUILD
@@ -26,6 +26,8 @@
exports_files(["LICENSE"])
+load("//:build.bzl", "nginx_copts", "nginx_cxxopts")
+
genrule(
name = "ngx_modules_c",
srcs = [
@@ -42,6 +44,7 @@
srcs = [
"src/ngx_http_brotli_filter_module.cc",
],
+ copts = nginx_cxxopts,
defines = [
"NGX_HTTP_BROTLI_FILTER",
],
@@ -60,6 +63,7 @@
srcs = [
"src/ngx_http_brotli_static_module.c",
],
+ copts = nginx_copts,
defines = [
"NGX_HTTP_BROTLI_STATIC",
],
@@ -77,6 +81,7 @@
srcs = [
"ngx_modules.c",
],
+ copts = nginx_copts,
deps = [
":http_brotli_filter",
":http_brotli_static",