diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2024-02-22 13:19:49 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2024-03-12 13:45:06 +0000 |
commit | 9c1f44f67466fea2fb20bb6f31fea388d8c65961 (patch) | |
tree | 03e7709aa7ed9a7cf2ec26ca410acd0b4c536666 /chromium/build/config/compiler/BUILD.gn | |
parent | ada9ddbf8c604585ac344b72f7bb63ac27c84726 (diff) |
BASELINE: Update Chromium to 122.0.6261.72
Change-Id: I655fa6da670f5e82a4c0df33630e388663de2a8e
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/542310
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/build/config/compiler/BUILD.gn')
-rw-r--r-- | chromium/build/config/compiler/BUILD.gn | 57 |
1 files changed, 29 insertions, 28 deletions
diff --git a/chromium/build/config/compiler/BUILD.gn b/chromium/build/config/compiler/BUILD.gn index 80bc79e5fb3..89b4755ac8b 100644 --- a/chromium/build/config/compiler/BUILD.gn +++ b/chromium/build/config/compiler/BUILD.gn @@ -144,6 +144,8 @@ declare_args() { # recognizable in the debugger, and crashes on memory accesses through # uninitialized pointers. # + # Flag discussion: https://crbug.com/977230 + # # TODO(crbug.com/1131993): This regresses binary size by ~1MB on Android and # needs to be evaluated before enabling it there as well. init_stack_vars = !(is_android && is_official_build) @@ -800,13 +802,10 @@ config("compiler") { if (is_apple) { ldflags += [ "-Wcrl,object_path_lto" ] } - if (!is_chromeos) { - # TODO(https://crbug.com/972449): turn on for ChromeOS when that - # toolchain has this flag. - # We only use one version of LLVM within a build so there's no need to - # upgrade debug info, which can be expensive since it runs the verifier. - ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ] - } + + # We only use one version of LLVM within a build so there's no need to + # upgrade debug info, which can be expensive since it runs the verifier. + ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ] } # TODO(https://crbug.com/1211155): investigate why this isn't effective on @@ -1065,8 +1064,10 @@ config("compiler") { if (is_nacl_saigo) { defines += [ "_LIBCPP_ENABLE_ASSERTIONS=1" ] } else { - defines += [ "_LIBCPP_ENABLE_SAFE_MODE=1" ] + defines += [ "_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE" ] } + } else { + defines += [ "_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE" ] } } @@ -1759,9 +1760,9 @@ config("default_warnings") { cflags += [ "/wd4244" ] } } else { - if (is_apple && !is_nacl) { - # When compiling Objective-C, warns if a method is used whose - # availability is newer than the deployment target. + if ((is_apple || is_android) && !is_nacl) { + # Warns if a method is used whose availability is newer than the + # deployment target. cflags += [ "-Wunguarded-availability" ] } @@ -1858,30 +1859,30 @@ config("default_warnings") { # Ignore warnings about MSVC optimization pragmas. # TODO(thakis): Only for no_chromium_code? http://crbug.com/912662 "-Wno-ignored-pragma-optimize", - ] - if (!is_nacl) { - cflags += [ - # TODO(crbug.com/1343975) Evaluate and possibly enable. - "-Wno-deprecated-builtins", + # TODO(crbug.com/1343975) Evaluate and possibly enable. + "-Wno-deprecated-builtins", - # TODO(crbug.com/1352183) Evaluate and possibly enable. - "-Wno-bitfield-constant-conversion", + # TODO(crbug.com/1352183) Evaluate and possibly enable. + "-Wno-bitfield-constant-conversion", - # TODO(crbug.com/1412713) Evaluate and possibly enable. - "-Wno-deprecated-this-capture", + # TODO(crbug.com/1412713) Evaluate and possibly enable. + "-Wno-deprecated-this-capture", - # TODO(https://crbug.com/1491833): Fix and re-enable. - "-Wno-invalid-offsetof", + # TODO(https://crbug.com/1491833): Fix and re-enable. + "-Wno-invalid-offsetof", - # TODO(crbug.com/1494809): Evaluate and possibly enable. - "-Wno-vla-extension", + # TODO(crbug.com/1494809): Evaluate and possibly enable. + "-Wno-vla-extension", - # TODO(https://crbug.com/1490607): Fix and re-enable. - "-Wno-thread-safety-reference-return", + # TODO(https://crbug.com/1490607): Fix and re-enable. + "-Wno-thread-safety-reference-return", + ] - # TODO(crbug.com/1495100): Evaluate and possibly enable. - "-Wno-delayed-template-parsing-in-cxx20", + if (!is_nacl) { + cflags_cc += [ + # TODO(https://crbug.com/1513724): Fix and re-enable. + "-Wno-c++11-narrowing-const-reference", ] } } |