Skip to content

Commit 2067a8b

Browse files
committed
Update zlib build file
Partial commit for third_party/*, see #19421. Closes #19421 Signed-off-by: Yun Peng <[email protected]>
1 parent b27ca73 commit 2067a8b

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

third_party/zlib/BUILD

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,14 @@ distrib_cc_library(
6868
"zlib.h",
6969
"zutil.h",
7070
],
71-
# Use -Dverbose=-1 to turn off zlib's trace logging. (#3280)
72-
copts = [
73-
"-w",
74-
"-Dverbose=-1",
75-
],
71+
copts = select({
72+
"@platforms//os:windows": [],
73+
"//conditions:default": [
74+
"-Wno-deprecated-non-prototype",
75+
"-Wno-unused-variable",
76+
"-Wno-implicit-function-declaration",
77+
],
78+
}),
7679
enable_distributions = ["debian"],
7780
includes = ["."],
7881
visibility = ["//visibility:public"],

third_party/zlib/BUILD.tools

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,21 @@ license(
1212
"@rules_license//licenses/spdx:0BSD",
1313
],
1414
license_text = "LICENSE",
15-
package_version = "1.2.12",
15+
package_version = "1.3",
1616
)
1717

1818
cc_library(
1919
name = "zlib",
2020
srcs = glob(["*.c"]),
2121
hdrs = glob(["*.h"]),
22-
# Use -Dverbose=-1 to turn off zlib's trace logging. (#3280)
23-
copts = [
24-
"-w",
25-
"-Dverbose=-1",
26-
],
22+
copts = select({
23+
"@platforms//os:windows": [],
24+
"//conditions:default": [
25+
"-Wno-deprecated-non-prototype",
26+
"-Wno-unused-variable",
27+
"-Wno-implicit-function-declaration",
28+
],
29+
}),
2730
includes = ["."],
2831
visibility = ["//visibility:public"],
2932
)

0 commit comments

Comments
 (0)