2022-03-18 15:41:41 +00:00
|
|
|
Index: electron-17.1.0/build/config/BUILDCONFIG.gn
|
2021-06-29 20:42:56 +00:00
|
|
|
===================================================================
|
2022-03-18 15:41:41 +00:00
|
|
|
--- electron-17.1.0.orig/build/config/BUILDCONFIG.gn 2022-03-07 17:38:24.389172130 +0100
|
|
|
|
+++ electron-17.1.0/build/config/BUILDCONFIG.gn 2022-03-09 08:25:02.246701706 +0100
|
|
|
|
@@ -138,6 +138,8 @@ declare_args() {
|
|
|
|
# set "is_official_build" to true for any build intended to ship to end-users.
|
2021-06-29 20:42:56 +00:00
|
|
|
is_official_build = false
|
|
|
|
|
|
|
|
+ gcc_lto = false
|
|
|
|
+
|
|
|
|
# Set to true when compiling with the Clang compiler.
|
|
|
|
is_clang = current_os != "linux" ||
|
|
|
|
(current_cpu != "s390x" && current_cpu != "s390" &&
|
2022-03-18 15:41:41 +00:00
|
|
|
@@ -352,6 +354,12 @@ default_compiler_configs = [
|
2023-09-13 04:57:45 +00:00
|
|
|
"//build/config/sanitizers:default_sanitizer_flags",
|
2021-06-29 20:42:56 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
+if (gcc_lto) {
|
|
|
|
+ default_compiler_configs += [
|
|
|
|
+ "//build/config/compiler:gcc_lto",
|
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
if (is_win) {
|
|
|
|
default_compiler_configs += [
|
|
|
|
"//build/config/win:default_cfg_compiler",
|
2022-03-18 15:41:41 +00:00
|
|
|
Index: electron-17.1.0/build/config/compiler/BUILD.gn
|
2021-06-29 20:42:56 +00:00
|
|
|
===================================================================
|
2022-03-18 15:41:41 +00:00
|
|
|
--- electron-17.1.0.orig/build/config/compiler/BUILD.gn 2022-03-09 08:24:53.098851231 +0100
|
|
|
|
+++ electron-17.1.0/build/config/compiler/BUILD.gn 2022-03-09 08:25:02.250701641 +0100
|
|
|
|
@@ -1880,6 +1880,10 @@ if (is_win) {
|
2024-02-27 19:01:54 +00:00
|
|
|
common_optimize_on_cflags += [ "-fno-math-errno" ]
|
2021-06-29 20:42:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+config("gcc_lto") {
|
2022-08-01 08:25:54 +00:00
|
|
|
+ cflags = [ "-flto=auto" ]
|
2021-06-29 20:42:56 +00:00
|
|
|
+}
|
|
|
|
+
|
2022-10-26 04:51:48 +00:00
|
|
|
config("default_stack_frames") { }
|
|
|
|
config("xdefault_stack_frames") {
|
2023-09-13 04:57:45 +00:00
|
|
|
if (!is_win) {
|