aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2018-07-11 12:16:15 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2018-07-11 12:16:15 -0400
commit582d3c5dd75c52e3e147d4aedd8542701093921e (patch)
tree74fe45ea33ccb4ae295f5359d875ac345db8d837
parentb908add40f0d4eac6a8a10da8a3a6c25bec744cc (diff)
objectivec: Set -Wno-vla when buildingHEADmaster
Objective-C protobuf uses VLAs for performance reasons. Ensure Clang doesn’t complain about them.
-rw-r--r--BUILD3
1 files changed, 3 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index 7f7ec759..df9867b6 100644
--- a/BUILD
+++ b/BUILD
@@ -934,6 +934,9 @@ OBJC_SRCS = [
objc_library(
name = "objectivec",
hdrs = OBJC_HDRS + OBJC_PRIVATE_HDRS,
+ copts = [
+ "-Wno-vla",
+ ],
includes = [
"objectivec",
],