| Index: third_party/zlib/BUILD.gn
|
| diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn
|
| index 1cea9acb9835b079bf3e9f7e34eb3fa773b63af3..a1317f222908687b218ae7724bd6a4677669b79e 100644
|
| --- a/third_party/zlib/BUILD.gn
|
| +++ b/third_party/zlib/BUILD.gn
|
| @@ -102,17 +102,20 @@ static_library("minizip") {
|
| defines = [ "USE_FILE32API" ]
|
| }
|
|
|
| - if (is_clang) {
|
| - # zlib uses `if ((a == b))` for some reason.
|
| - cflags = [ "-Wno-parentheses-equality" ]
|
| - }
|
| -
|
| deps = [
|
| ":zlib",
|
| ]
|
|
|
| + config("minizip_warnings") {
|
| + if (is_clang) {
|
| + # zlib uses `if ((a == b))` for some reason.
|
| + cflags = [ "-Wno-parentheses-equality" ]
|
| + }
|
| + }
|
| +
|
| configs -= [ "//build/config/compiler:chromium_code" ]
|
| configs += [ "//build/config/compiler:no_chromium_code" ]
|
| + configs += [ ":minizip_warnings" ]
|
| public_configs = [ ":zlib_config" ]
|
| }
|
|
|
|
|