Skip to content

Commit 5e0ab97

Browse files
build: Skip warning flags for zlib on Windows
1 parent e79313d commit 5e0ab97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

third_party/zlib.BUILD

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@ cc_library(
5555
# but clients generally use <>.
5656
] + _ZLIB_PUBLIC_HEADERS,
5757
hdrs = _ZLIB_PREFIXED_HEADERS,
58-
copts = [
58+
copts = select({
59+
"@platforms//os:windows": [],
60+
"//conditions:default": [
5961
"-Wno-unused-variable",
6062
"-Wno-implicit-function-declaration",
6163
"-Wno-implicit-fallthrough",
6264
"-Wno-cast-qual",
6365
"-Wno-covered-switch-default",
6466
"-Wno-deprecated-non-prototype",
65-
],
67+
]}),
6668
includes = ["zlib/include/"],
6769
)

0 commit comments

Comments
 (0)