2019-07-17 08:40:10 +00:00
|
|
|
Index: chromium-75.0.3770.142/build/config/BUILDCONFIG.gn
|
|
|
|
|
===================================================================
|
|
|
|
|
--- chromium-75.0.3770.142.orig/build/config/BUILDCONFIG.gn
|
|
|
|
|
+++ chromium-75.0.3770.142/build/config/BUILDCONFIG.gn
|
2019-07-03 13:21:29 +00:00
|
|
|
@@ -130,6 +130,8 @@ declare_args() {
|
|
|
|
|
# separate flags.
|
2011-08-17 07:21:58 +00:00
|
|
|
is_official_build = false
|
|
|
|
|
|
|
|
|
|
+ gcc_lto = false
|
|
|
|
|
+
|
2019-07-03 13:21:29 +00:00
|
|
|
# Whether we're a traditional desktop unix.
|
|
|
|
|
is_desktop_linux = current_os == "linux"
|
|
|
|
|
|
|
|
|
|
@@ -440,6 +442,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 += [
|
2019-07-03 13:21:29 +00:00
|
|
|
"//build/config/win:default_crt",
|
2019-07-17 08:40:10 +00:00
|
|
|
Index: chromium-75.0.3770.142/build/config/compiler/BUILD.gn
|
|
|
|
|
===================================================================
|
|
|
|
|
--- chromium-75.0.3770.142.orig/build/config/compiler/BUILD.gn
|
|
|
|
|
+++ chromium-75.0.3770.142/build/config/compiler/BUILD.gn
|
2019-07-03 13:21:29 +00:00
|
|
|
@@ -1921,6 +1921,10 @@ if (is_win) {
|
|
|
|
|
}
|
2011-08-17 07:21:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+config("gcc_lto") {
|
|
|
|
|
+ cflags = [ "-flto" ]
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
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) {
|
2019-07-17 08:40:10 +00:00
|
|
|
Index: chromium-75.0.3770.142/sandbox/linux/BUILD.gn
|
|
|
|
|
===================================================================
|
|
|
|
|
--- chromium-75.0.3770.142.orig/sandbox/linux/BUILD.gn
|
|
|
|
|
+++ chromium-75.0.3770.142/sandbox/linux/BUILD.gn
|
|
|
|
|
@@ -256,6 +256,9 @@ component("seccomp_bpf") {
|
2011-08-17 07:21:58 +00:00
|
|
|
"//base",
|
2019-07-03 13:21:29 +00:00
|
|
|
"//base/third_party/dynamic_annotations",
|
2011-08-17 07:21:58 +00:00
|
|
|
]
|
2019-07-17 08:40:10 +00:00
|
|
|
+ config("gcc_lto") {
|
|
|
|
|
+ configs -= [ "//build/config/compiler:gcc_lto" ]
|
|
|
|
|
+ }
|
2011-08-17 07:21:58 +00:00
|
|
|
|
2019-07-03 13:21:29 +00:00
|
|
|
if (is_nacl_nonsfi) {
|
|
|
|
|
cflags = [ "-fgnu-inline-asm" ]
|