Files
chromium-dev/gcc-enable-lto.patch

71 lines
2.2 KiB
Diff
Raw Normal View History

Accepting request 829924 from network:chromium - Refresh build-with-pipewire-0.3.patch to mirror similar patch by Fedora for Firefox; screen-capture wasn't actually working with the previous version of the patch. - Add BuildRequires: pkgconfig(libspa-0.2) when building with pipewire support to guard against potential package splitting off of pipewire-spa-devel from pipewire-devel. - Update _constraints to avoid very slow builds seen on obs-arm-4 (probably due to swap) - Add icu-v67.patch from upstream to fix build with icu v67 - Disable lto to avoid the overflow >16GB ram used - Use internal resources for icon and appdata - Added patch chromium-vaapi-fix.patch again to fix boo#1146219 ------------------------------------------------------------------- - Up to 78.0.3887.7 - Enable LTO for x86_64 - add gcc-enable-lto.patch and gcc-lto-rsp-clobber.patch patches. - Refresh patch: * chromium-non-void-return.patch - Add new patch to fix aarch64 build: * chromium-fix_swiftshader.patch - Update %arm build, but keep it disabled for now, as ld requires lots of RAM - Up to 72.0.3626.14 - Update chromium-vaapi.patch - Update chromium-system-icu.patch - Increase %limit_build value to avoid OOM - Rework aarch64 build requirements - Reduce jumbo_file_merge_limit to 8 for aarch64 to avoid OOM - Fix again aarch64 skia build: * chromium-skia-aarch64-buildfix.patch OBS-URL: https://build.opensuse.org/request/show/829924 OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1464
2020-08-27 08:24:47 +00:00
Index: chromium-85.0.4183.69/build/config/BUILDCONFIG.gn
===================================================================
Accepting request 829924 from network:chromium - Refresh build-with-pipewire-0.3.patch to mirror similar patch by Fedora for Firefox; screen-capture wasn't actually working with the previous version of the patch. - Add BuildRequires: pkgconfig(libspa-0.2) when building with pipewire support to guard against potential package splitting off of pipewire-spa-devel from pipewire-devel. - Update _constraints to avoid very slow builds seen on obs-arm-4 (probably due to swap) - Add icu-v67.patch from upstream to fix build with icu v67 - Disable lto to avoid the overflow >16GB ram used - Use internal resources for icon and appdata - Added patch chromium-vaapi-fix.patch again to fix boo#1146219 ------------------------------------------------------------------- - Up to 78.0.3887.7 - Enable LTO for x86_64 - add gcc-enable-lto.patch and gcc-lto-rsp-clobber.patch patches. - Refresh patch: * chromium-non-void-return.patch - Add new patch to fix aarch64 build: * chromium-fix_swiftshader.patch - Update %arm build, but keep it disabled for now, as ld requires lots of RAM - Up to 72.0.3626.14 - Update chromium-vaapi.patch - Update chromium-system-icu.patch - Increase %limit_build value to avoid OOM - Rework aarch64 build requirements - Reduce jumbo_file_merge_limit to 8 for aarch64 to avoid OOM - Fix again aarch64 skia build: * chromium-skia-aarch64-buildfix.patch OBS-URL: https://build.opensuse.org/request/show/829924 OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1464
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
@@ -130,6 +130,8 @@ declare_args() {
# separate flags.
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" &&
Accepting request 829924 from network:chromium - Refresh build-with-pipewire-0.3.patch to mirror similar patch by Fedora for Firefox; screen-capture wasn't actually working with the previous version of the patch. - Add BuildRequires: pkgconfig(libspa-0.2) when building with pipewire support to guard against potential package splitting off of pipewire-spa-devel from pipewire-devel. - Update _constraints to avoid very slow builds seen on obs-arm-4 (probably due to swap) - Add icu-v67.patch from upstream to fix build with icu v67 - Disable lto to avoid the overflow >16GB ram used - Use internal resources for icon and appdata - Added patch chromium-vaapi-fix.patch again to fix boo#1146219 ------------------------------------------------------------------- - Up to 78.0.3887.7 - Enable LTO for x86_64 - add gcc-enable-lto.patch and gcc-lto-rsp-clobber.patch patches. - Refresh patch: * chromium-non-void-return.patch - Add new patch to fix aarch64 build: * chromium-fix_swiftshader.patch - Update %arm build, but keep it disabled for now, as ld requires lots of RAM - Up to 72.0.3626.14 - Update chromium-vaapi.patch - Update chromium-system-icu.patch - Increase %limit_build value to avoid OOM - Rework aarch64 build requirements - Reduce jumbo_file_merge_limit to 8 for aarch64 to avoid OOM - Fix again aarch64 skia build: * chromium-skia-aarch64-buildfix.patch OBS-URL: https://build.opensuse.org/request/show/829924 OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1464
2020-08-27 08:24:47 +00:00
@@ -441,6 +443,12 @@ default_compiler_configs = [
"//build/config/sanitizers:default_sanitizer_flags",
]
+if (gcc_lto) {
+ default_compiler_configs += [
+ "//build/config/compiler:gcc_lto",
+ ]
+}
+
if (is_win) {
default_compiler_configs += [
"//build/config/win:default_cfg_compiler",
Accepting request 829924 from network:chromium - Refresh build-with-pipewire-0.3.patch to mirror similar patch by Fedora for Firefox; screen-capture wasn't actually working with the previous version of the patch. - Add BuildRequires: pkgconfig(libspa-0.2) when building with pipewire support to guard against potential package splitting off of pipewire-spa-devel from pipewire-devel. - Update _constraints to avoid very slow builds seen on obs-arm-4 (probably due to swap) - Add icu-v67.patch from upstream to fix build with icu v67 - Disable lto to avoid the overflow >16GB ram used - Use internal resources for icon and appdata - Added patch chromium-vaapi-fix.patch again to fix boo#1146219 ------------------------------------------------------------------- - Up to 78.0.3887.7 - Enable LTO for x86_64 - add gcc-enable-lto.patch and gcc-lto-rsp-clobber.patch patches. - Refresh patch: * chromium-non-void-return.patch - Add new patch to fix aarch64 build: * chromium-fix_swiftshader.patch - Update %arm build, but keep it disabled for now, as ld requires lots of RAM - Up to 72.0.3626.14 - Update chromium-vaapi.patch - Update chromium-system-icu.patch - Increase %limit_build value to avoid OOM - Rework aarch64 build requirements - Reduce jumbo_file_merge_limit to 8 for aarch64 to avoid OOM - Fix again aarch64 skia build: * chromium-skia-aarch64-buildfix.patch OBS-URL: https://build.opensuse.org/request/show/829924 OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1464
2020-08-27 08:24:47 +00:00
Index: chromium-85.0.4183.69/build/config/compiler/BUILD.gn
===================================================================
Accepting request 829924 from network:chromium - Refresh build-with-pipewire-0.3.patch to mirror similar patch by Fedora for Firefox; screen-capture wasn't actually working with the previous version of the patch. - Add BuildRequires: pkgconfig(libspa-0.2) when building with pipewire support to guard against potential package splitting off of pipewire-spa-devel from pipewire-devel. - Update _constraints to avoid very slow builds seen on obs-arm-4 (probably due to swap) - Add icu-v67.patch from upstream to fix build with icu v67 - Disable lto to avoid the overflow >16GB ram used - Use internal resources for icon and appdata - Added patch chromium-vaapi-fix.patch again to fix boo#1146219 ------------------------------------------------------------------- - Up to 78.0.3887.7 - Enable LTO for x86_64 - add gcc-enable-lto.patch and gcc-lto-rsp-clobber.patch patches. - Refresh patch: * chromium-non-void-return.patch - Add new patch to fix aarch64 build: * chromium-fix_swiftshader.patch - Update %arm build, but keep it disabled for now, as ld requires lots of RAM - Up to 72.0.3626.14 - Update chromium-vaapi.patch - Update chromium-system-icu.patch - Increase %limit_build value to avoid OOM - Rework aarch64 build requirements - Reduce jumbo_file_merge_limit to 8 for aarch64 to avoid OOM - Fix again aarch64 skia build: * chromium-skia-aarch64-buildfix.patch OBS-URL: https://build.opensuse.org/request/show/829924 OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1464
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) {
}
}
+config("gcc_lto") {
+ cflags = [ "-flto" ]
+}
+
config("default_stack_frames") {
if (is_posix || is_fuchsia) {
if (enable_frame_pointers) {
Accepting request 829924 from network:chromium - Refresh build-with-pipewire-0.3.patch to mirror similar patch by Fedora for Firefox; screen-capture wasn't actually working with the previous version of the patch. - Add BuildRequires: pkgconfig(libspa-0.2) when building with pipewire support to guard against potential package splitting off of pipewire-spa-devel from pipewire-devel. - Update _constraints to avoid very slow builds seen on obs-arm-4 (probably due to swap) - Add icu-v67.patch from upstream to fix build with icu v67 - Disable lto to avoid the overflow >16GB ram used - Use internal resources for icon and appdata - Added patch chromium-vaapi-fix.patch again to fix boo#1146219 ------------------------------------------------------------------- - Up to 78.0.3887.7 - Enable LTO for x86_64 - add gcc-enable-lto.patch and gcc-lto-rsp-clobber.patch patches. - Refresh patch: * chromium-non-void-return.patch - Add new patch to fix aarch64 build: * chromium-fix_swiftshader.patch - Update %arm build, but keep it disabled for now, as ld requires lots of RAM - Up to 72.0.3626.14 - Update chromium-vaapi.patch - Update chromium-system-icu.patch - Increase %limit_build value to avoid OOM - Rework aarch64 build requirements - Reduce jumbo_file_merge_limit to 8 for aarch64 to avoid OOM - Fix again aarch64 skia build: * chromium-skia-aarch64-buildfix.patch OBS-URL: https://build.opensuse.org/request/show/829924 OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1464
2020-08-27 08:24:47 +00:00
Index: chromium-85.0.4183.69/sandbox/linux/BUILD.gn
===================================================================
Accepting request 829924 from network:chromium - Refresh build-with-pipewire-0.3.patch to mirror similar patch by Fedora for Firefox; screen-capture wasn't actually working with the previous version of the patch. - Add BuildRequires: pkgconfig(libspa-0.2) when building with pipewire support to guard against potential package splitting off of pipewire-spa-devel from pipewire-devel. - Update _constraints to avoid very slow builds seen on obs-arm-4 (probably due to swap) - Add icu-v67.patch from upstream to fix build with icu v67 - Disable lto to avoid the overflow >16GB ram used - Use internal resources for icon and appdata - Added patch chromium-vaapi-fix.patch again to fix boo#1146219 ------------------------------------------------------------------- - Up to 78.0.3887.7 - Enable LTO for x86_64 - add gcc-enable-lto.patch and gcc-lto-rsp-clobber.patch patches. - Refresh patch: * chromium-non-void-return.patch - Add new patch to fix aarch64 build: * chromium-fix_swiftshader.patch - Update %arm build, but keep it disabled for now, as ld requires lots of RAM - Up to 72.0.3626.14 - Update chromium-vaapi.patch - Update chromium-system-icu.patch - Increase %limit_build value to avoid OOM - Rework aarch64 build requirements - Reduce jumbo_file_merge_limit to 8 for aarch64 to avoid OOM - Fix again aarch64 skia build: * chromium-skia-aarch64-buildfix.patch OBS-URL: https://build.opensuse.org/request/show/829924 OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1464
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") {
"//build:chromeos_buildflags",
Accepting request 829924 from network:chromium - Refresh build-with-pipewire-0.3.patch to mirror similar patch by Fedora for Firefox; screen-capture wasn't actually working with the previous version of the patch. - Add BuildRequires: pkgconfig(libspa-0.2) when building with pipewire support to guard against potential package splitting off of pipewire-spa-devel from pipewire-devel. - Update _constraints to avoid very slow builds seen on obs-arm-4 (probably due to swap) - Add icu-v67.patch from upstream to fix build with icu v67 - Disable lto to avoid the overflow >16GB ram used - Use internal resources for icon and appdata - Added patch chromium-vaapi-fix.patch again to fix boo#1146219 ------------------------------------------------------------------- - Up to 78.0.3887.7 - Enable LTO for x86_64 - add gcc-enable-lto.patch and gcc-lto-rsp-clobber.patch patches. - Refresh patch: * chromium-non-void-return.patch - Add new patch to fix aarch64 build: * chromium-fix_swiftshader.patch - Update %arm build, but keep it disabled for now, as ld requires lots of RAM - Up to 72.0.3626.14 - Update chromium-vaapi.patch - Update chromium-system-icu.patch - Increase %limit_build value to avoid OOM - Rework aarch64 build requirements - Reduce jumbo_file_merge_limit to 8 for aarch64 to avoid OOM - Fix again aarch64 skia build: * chromium-skia-aarch64-buildfix.patch OBS-URL: https://build.opensuse.org/request/show/829924 OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1464
2020-08-27 08:24:47 +00:00
"//sandbox:sandbox_buildflags",
]
+ if (gcc_lto) {
+ configs -= [ "//build/config/compiler:gcc_lto" ]
+ }
if (is_android) {
sources += [
Index: chromium-96.0.4664.93/base/BUILD.gn
===================================================================
--- a/base/BUILD.gn
+++ b/base/BUILD.gn
@@ -1986,6 +1986,10 @@
]
}
+ if (gcc_lto) {
+ configs -= [ "//build/config/compiler:gcc_lto" ]
+ }
+
if (current_cpu == "x64") {
defines += [ "PA_PCSCAN_STACK_SUPPORTED" ]
sources += [ "allocator/partition_allocator/starscan/stack/asm/x64/push_registers_asm.cc" ]