2024-01-12 07:25:30 +00:00
|
|
|
Index: chromium-120.0.6099.18/build/config/BUILDCONFIG.gn
|
2019-07-17 08:40:10 +00:00
|
|
|
===================================================================
|
2024-01-12 07:25:30 +00:00
|
|
|
--- chromium-120.0.6099.18.orig/build/config/BUILDCONFIG.gn
|
|
|
|
|
+++ chromium-120.0.6099.18/build/config/BUILDCONFIG.gn
|
2023-03-09 02:00:22 +00:00
|
|
|
@@ -135,6 +135,8 @@ declare_args() {
|
2022-01-12 20:14:34 +00:00
|
|
|
# set "is_official_build" to true for any build intended to ship to end-users.
|
2011-08-17 07:21:58 +00:00
|
|
|
is_official_build = false
|
|
|
|
|
|
|
|
|
|
+ gcc_lto = false
|
|
|
|
|
+
|
2021-01-23 17:08:22 +00:00
|
|
|
# Set to true when compiling with the Clang compiler.
|
|
|
|
|
is_clang = current_os != "linux" ||
|
|
|
|
|
(current_cpu != "s390x" && current_cpu != "s390" &&
|
2023-03-09 02:00:22 +00:00
|
|
|
@@ -354,6 +356,12 @@ default_compiler_configs = [
|
2011-08-17 07:21:58 +00:00
|
|
|
"//build/config/sanitizers:default_sanitizer_flags",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
+if (gcc_lto) {
|
|
|
|
|
+ default_compiler_configs += [
|
|
|
|
|
+ "//build/config/compiler:gcc_lto",
|
|
|
|
|
+ ]
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
if (is_win) {
|
|
|
|
|
default_compiler_configs += [
|
2021-03-05 12:09:31 +00:00
|
|
|
"//build/config/win:default_cfg_compiler",
|
2024-01-12 07:25:30 +00:00
|
|
|
Index: chromium-120.0.6099.18/build/config/compiler/BUILD.gn
|
2019-07-17 08:40:10 +00:00
|
|
|
===================================================================
|
2024-01-12 07:25:30 +00:00
|
|
|
--- chromium-120.0.6099.18.orig/build/config/compiler/BUILD.gn
|
|
|
|
|
+++ chromium-120.0.6099.18/build/config/compiler/BUILD.gn
|
|
|
|
|
@@ -2342,6 +2342,10 @@ if (is_win) {
|
2023-11-10 18:52:19 +00:00
|
|
|
common_optimize_on_cflags += [ "-fno-math-errno" ]
|
2011-08-17 07:21:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+config("gcc_lto") {
|
2021-12-15 10:54:05 +00:00
|
|
|
+ cflags = [ "-flto" ]
|
2011-08-17 07:21:58 +00:00
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
config("default_stack_frames") {
|
2023-03-09 02:00:22 +00:00
|
|
|
if (!is_win) {
|
2011-08-17 07:21:58 +00:00
|
|
|
if (enable_frame_pointers) {
|
2024-01-12 07:25:30 +00:00
|
|
|
Index: chromium-120.0.6099.18/sandbox/linux/BUILD.gn
|
2019-07-17 08:40:10 +00:00
|
|
|
===================================================================
|
2024-01-12 07:25:30 +00:00
|
|
|
--- chromium-120.0.6099.18.orig/sandbox/linux/BUILD.gn
|
|
|
|
|
+++ chromium-120.0.6099.18/sandbox/linux/BUILD.gn
|
2023-03-09 02:00:22 +00:00
|
|
|
@@ -253,6 +253,9 @@ component("seccomp_bpf") {
|
2021-01-23 17:08:22 +00:00
|
|
|
"//build:chromeos_buildflags",
|
2020-08-27 08:24:47 +00:00
|
|
|
"//sandbox:sandbox_buildflags",
|
2011-08-17 07:21:58 +00:00
|
|
|
]
|
2019-07-17 08:51:39 +00:00
|
|
|
+ if (gcc_lto) {
|
2019-07-17 08:40:10 +00:00
|
|
|
+ configs -= [ "//build/config/compiler:gcc_lto" ]
|
|
|
|
|
+ }
|
2011-08-17 07:21:58 +00:00
|
|
|
|
2021-01-23 17:08:22 +00:00
|
|
|
if (is_android) {
|
|
|
|
|
sources += [
|
2024-01-12 07:25:30 +00:00
|
|
|
Index: chromium-120.0.6099.18/base/BUILD.gn
|
2023-03-09 02:00:22 +00:00
|
|
|
===================================================================
|
2024-01-12 07:25:30 +00:00
|
|
|
--- chromium-120.0.6099.18.orig/base/BUILD.gn
|
|
|
|
|
+++ chromium-120.0.6099.18/base/BUILD.gn
|
2024-08-21 10:30:26 +00:00
|
|
|
@@ -3561,6 +3561,10 @@
|
|
|
|
|
sources += [ "location_unittest.cc" ]
|
2022-05-27 19:48:59 +00:00
|
|
|
}
|
2023-03-09 02:00:22 +00:00
|
|
|
|
2022-05-27 19:48:59 +00:00
|
|
|
+ if (gcc_lto) {
|
|
|
|
|
+ configs -= [ "//build/config/compiler:gcc_lto" ]
|
|
|
|
|
+ }
|
2021-12-09 10:00:26 +00:00
|
|
|
+
|
2024-11-19 16:24:37 +00:00
|
|
|
if (!is_nacl) {
|
2022-05-27 19:48:59 +00:00
|
|
|
sources += [
|
2024-08-21 10:30:26 +00:00
|
|
|
"containers/span_rust_unittest.cc",
|