Update BUILD.gn
This commit is contained in:
parent
46de21ec96
commit
7aeabdffaf
1 changed files with 6 additions and 2 deletions
8
third_party/zlib/BUILD.gn
vendored
8
third_party/zlib/BUILD.gn
vendored
|
@ -197,6 +197,7 @@ source_set("zlib_inflate_chunk_simd") {
|
|||
# style function declarations, which triggers warning C4131.
|
||||
configs -= [ "//build/config/compiler:chromium_code" ]
|
||||
configs += [ "//build/config/compiler:no_chromium_code" ]
|
||||
configs += [ ":zlib_warnings" ]
|
||||
|
||||
public_configs = [ ":zlib_inflate_chunk_simd_config" ]
|
||||
|
||||
|
@ -263,8 +264,11 @@ source_set("zlib_slide_hash_simd") {
|
|||
}
|
||||
|
||||
config("zlib_warnings") {
|
||||
if (is_clang && use_x86_x64_optimizations) {
|
||||
cflags = [ "-Wno-incompatible-pointer-types" ]
|
||||
if (is_clang) {
|
||||
cflags = [ "-Wno-deprecated-non-prototype" ]
|
||||
if (use_x86_x64_optimizations) {
|
||||
cflags += [ "-Wno-incompatible-pointer-types" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue