Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-05-05 03:23:17 -05:00 committed by GitHub
parent 46de21ec96
commit 7aeabdffaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ]
}
}
}