2020-08-27 08:24:47 +00:00
|
|
|
Index: chromium-85.0.4183.69/build/config/BUILDCONFIG.gn
|
2019-07-17 08:40:10 +00:00
|
|
|
===================================================================
|
2020-08-27 08:24:47 +00:00
|
|
|
--- chromium-85.0.4183.69.orig/build/config/BUILDCONFIG.gn
|
|
|
|
|
+++ chromium-85.0.4183.69/build/config/BUILDCONFIG.gn
|
2019-07-03 13:21:29 +00:00
|
|
|
@@ -130,6 +130,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" &&
|
2020-08-27 08:24:47 +00:00
|
|
|
@@ -441,6 +443,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",
|
2020-08-27 08:24:47 +00:00
|
|
|
Index: chromium-85.0.4183.69/build/config/compiler/BUILD.gn
|
2019-07-17 08:40:10 +00:00
|
|
|
===================================================================
|
2020-08-27 08:24:47 +00:00
|
|
|
--- chromium-85.0.4183.69.orig/build/config/compiler/BUILD.gn
|
|
|
|
|
+++ chromium-85.0.4183.69/build/config/compiler/BUILD.gn
|
|
|
|
|
@@ -1947,6 +1947,10 @@ if (is_win) {
|
2019-07-03 13:21:29 +00:00
|
|
|
}
|
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") {
|
2019-07-03 13:21:29 +00:00
|
|
|
if (is_posix || is_fuchsia) {
|
2011-08-17 07:21:58 +00:00
|
|
|
if (enable_frame_pointers) {
|
2020-08-27 08:24:47 +00:00
|
|
|
Index: chromium-85.0.4183.69/sandbox/linux/BUILD.gn
|
2019-07-17 08:40:10 +00:00
|
|
|
===================================================================
|
2020-08-27 08:24:47 +00:00
|
|
|
--- chromium-85.0.4183.69.orig/sandbox/linux/BUILD.gn
|
|
|
|
|
+++ chromium-85.0.4183.69/sandbox/linux/BUILD.gn
|
|
|
|
|
@@ -250,6 +250,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 += [
|
2021-12-09 10:00:26 +00:00
|
|
|
Index: chromium-96.0.4664.93/base/BUILD.gn
|
|
|
|
|
===================================================================
|
|
|
|
|
--- a/base/BUILD.gn
|
|
|
|
|
+++ b/base/BUILD.gn
|
|
|
|
|
@@ -1986,6 +1986,10 @@
|
2022-05-27 19:48:59 +00:00
|
|
|
}
|
|
|
|
|
}
|
2021-12-09 10:00:26 +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
|
|
|
+
|
2022-05-27 19:48:59 +00:00
|
|
|
if (use_partition_alloc) {
|
|
|
|
|
sources += [
|
|
|
|
|
"allocator/partition_allocator/address_pool_manager_unittest.cc",
|