Update BUILD.gn
This commit is contained in:
parent
78ce9988f1
commit
f82fb987b4
1 changed files with 11 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue