17 lines
667 B
Diff
17 lines
667 B
Diff
diff -up chromium-122.0.6261.57/build/config/compiler/BUILD.gn.me chromium-122.0.6261.57/build/config/compiler/BUILD.gn
|
|
--- chromium-122.0.6261.57/build/config/compiler/BUILD.gn.me 2024-02-23 12:32:11.248584653 +0100
|
|
+++ chromium-122.0.6261.57/build/config/compiler/BUILD.gn 2024-02-23 12:45:26.672302958 +0100
|
|
@@ -399,6 +399,13 @@ config("compiler") {
|
|
}
|
|
}
|
|
|
|
+ if (is_clang) {
|
|
+ cflags += [ "-ftrivial-auto-var-init=zero" ]
|
|
+ if (!is_ubsan && !is_ubsan_security) {
|
|
+ cflags += [ "-fwrapv" ]
|
|
+ }
|
|
+ }
|
|
+
|
|
# Linker warnings.
|
|
if (fatal_linker_warnings && !is_apple && current_os != "aix" &&
|
|
current_os != "zos") {
|