7
0
Files
nodejs-electron/gcc-enable-lto.patch

44 lines
1.5 KiB
Diff
Raw Normal View History

Index: electron-17.1.0/build/config/BUILDCONFIG.gn
===================================================================
--- 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.
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" &&
@@ -352,6 +354,12 @@ default_compiler_configs = [
"//electron/build/config:mas_build",
]
+if (gcc_lto) {
+ default_compiler_configs += [
+ "//build/config/compiler:gcc_lto",
+ ]
+}
+
if (is_win) {
default_compiler_configs += [
"//build/config/win:default_cfg_compiler",
Index: electron-17.1.0/build/config/compiler/BUILD.gn
===================================================================
--- 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) {
}
}
+config("gcc_lto") {
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
+ cflags = [ "-flto=auto" ]
+}
+
config("default_stack_frames") { }
config("xdefault_stack_frames") {
if (is_posix || is_fuchsia) {
Index: electron-17.1.0/sandbox/linux/BUILD.gn
===================================================================