Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-04-15 09:48:55 -05:00 committed by GitHub
parent 78ce9988f1
commit f82fb987b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -932,6 +932,7 @@ config("compiler_cpu_abi") {
if (is_android) {
# Outline atomics crash on Exynos 9810. http://crbug.com/1272795
cflags += [ "-mno-outline-atomics", "-O3", ]
ldflags += [ "-Wl,-O3", ]
}
} else if (current_cpu == "mipsel" && !is_nacl) {
ldflags += [ "-Wl,--hash-style=sysv" ]
@ -1536,21 +1537,21 @@ config("default_warnings") {
"-Wno-ignored-pragma-optimize",
]
if (llvm_force_head_revision && !is_nacl) {
cflags += [
# TODO(https://crbug.com/1314867): Clean up and enable.
"-Wno-deprecated-non-prototype",
]
}
if (!is_nacl) {
# TODO(https://crbug.com/1300731) Clean up and enable.
cflags += [ "-Wno-unqualified-std-cast-call" ]
# TODO(https://crbug.com/1314867): Clean up and enable.
cflags += [ "-Wno-deprecated-non-prototype" ]
}
if (is_chromeos || default_toolchain == "//build/toolchain/cros:target") {
# TODO(https://crbug.com/1016945): Re-enable once ChromeOS toolchain is up to date
cflags += [ "-Wno-builtin-assume-aligned-alignment" ]
if (!is_nacl && !(is_chromeos ||
default_toolchain == "//build/toolchain/cros:target")) {
# TODO(https://crbug.com/1316298): Re-enable once test failure is figured out
cflags += [
"-Xclang",
"-no-opaque-pointers",
]
}
if (is_fuchsia) {