Remove zlib copts flags when on Windows

pull/6397/head
Adam Liddell 5 years ago committed by Adam Cozzette
parent 640b932cf8
commit 19ca196e4d
  1. 11
      third_party/zlib.BUILD

@ -52,9 +52,12 @@ cc_library(
# choice of <> or "" delimiter when including itself. # choice of <> or "" delimiter when including itself.
] + _ZLIB_HEADERS, ] + _ZLIB_HEADERS,
hdrs = _ZLIB_PREFIXED_HEADERS, hdrs = _ZLIB_PREFIXED_HEADERS,
copts = [ copts = select({
"-Wno-unused-variable", "@bazel_tools//src/conditions:windows": [],
"-Wno-implicit-function-declaration", "//conditions:default": [
], "-Wno-unused-variable",
"-Wno-implicit-function-declaration",
],
}),
includes = ["zlib/include/"], includes = ["zlib/include/"],
) )

Loading…
Cancel
Save