Skip to content

Commit

Permalink
Remove zlib copts flags when on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aaliddell authored and acozzette committed Jul 17, 2019
1 parent 640b932 commit 19ca196
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions third_party/zlib.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@ cc_library(
# choice of <> or "" delimiter when including itself.
] + _ZLIB_HEADERS,
hdrs = _ZLIB_PREFIXED_HEADERS,
copts = [
"-Wno-unused-variable",
"-Wno-implicit-function-declaration",
],
copts = select({
"@bazel_tools//src/conditions:windows": [],
"//conditions:default": [
"-Wno-unused-variable",
"-Wno-implicit-function-declaration",
],
}),
includes = ["zlib/include/"],
)

0 comments on commit 19ca196

Please sign in to comment.