Skip to content

Commit

Permalink
Update zlib build file
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy committed Sep 6, 2023
1 parent b27ca73 commit 3dbfc91
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
13 changes: 8 additions & 5 deletions third_party/zlib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@ distrib_cc_library(
"zlib.h",
"zutil.h",
],
# Use -Dverbose=-1 to turn off zlib's trace logging. (#3280)
copts = [
"-w",
"-Dverbose=-1",
],
copts = select({
"@platforms//os:windows": [],
"//conditions:default": [
"-Wno-deprecated-non-prototype",
"-Wno-unused-variable",
"-Wno-implicit-function-declaration",
],
}),
enable_distributions = ["debian"],
includes = ["."],
visibility = ["//visibility:public"],
Expand Down
15 changes: 9 additions & 6 deletions third_party/zlib/BUILD.tools
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@ license(
"@rules_license//licenses/spdx:0BSD",
],
license_text = "LICENSE",
package_version = "1.2.12",
package_version = "1.3",
)

cc_library(
name = "zlib",
srcs = glob(["*.c"]),
hdrs = glob(["*.h"]),
# Use -Dverbose=-1 to turn off zlib's trace logging. (#3280)
copts = [
"-w",
"-Dverbose=-1",
],
copts = select({
"@platforms//os:windows": [],
"//conditions:default": [
"-Wno-deprecated-non-prototype",
"-Wno-unused-variable",
"-Wno-implicit-function-declaration",
],
}),
includes = ["."],
visibility = ["//visibility:public"],
)

0 comments on commit 3dbfc91

Please sign in to comment.