Merge pull request #4817 from earhart/master
Add -std=gnu99 when building libgrpc
diff --git a/BUILD b/BUILD
index c02fb9d..642b6c4 100644
--- a/BUILD
+++ b/BUILD
@@ -438,6 +438,9 @@
"//external:zlib",
":gpr",
],
+ copts = [
+ "-std=gnu99",
+ ],
)
@@ -707,6 +710,9 @@
deps = [
":gpr",
],
+ copts = [
+ "-std=gnu99",
+ ],
)
diff --git a/templates/BUILD.template b/templates/BUILD.template
index bb18c35..54dc697 100644
--- a/templates/BUILD.template
+++ b/templates/BUILD.template
@@ -104,6 +104,11 @@
"${dep}",
% endfor
],
+ % if lib.name in ("grpc", "grpc_unsecure"):
+ copts = [
+ "-std=gnu99",
+ ],
+ % endif
)
</%def>