From b2db981a6731e978453862a73dab892bc674db68 Mon Sep 17 00:00:00 2001 From: Sourabh Bajaj Date: Thu, 30 Nov 2017 16:37:11 -0800 Subject: Merge changes from github. PiperOrigin-RevId: 177526301 --- third_party/flatbuffers/flatbuffers.BUILD | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'third_party/flatbuffers') diff --git a/third_party/flatbuffers/flatbuffers.BUILD b/third_party/flatbuffers/flatbuffers.BUILD index e1563103c8..0a76adcf91 100644 --- a/third_party/flatbuffers/flatbuffers.BUILD +++ b/third_party/flatbuffers/flatbuffers.BUILD @@ -6,8 +6,11 @@ licenses(["notice"]) # Apache 2.0 FLATBUFFERS_COPTS = [ "-fexceptions", - "-Wno-implicit-fallthrough", -] +] + select({ + "@bazel_tools//src:windows": [], + "@bazel_tools//src:windows_msvc": [], + "//conditions:default": ["-Wno-implicit-fallthrough"], +}) # Public flatc library to compile flatbuffer files at runtime. cc_library( -- cgit v1.2.3