From bf1a205111904a6dfe53a0274ec50841b520cc51 Mon Sep 17 00:00:00 2001 From: Malik Shahzad Muzaffar Date: Tue, 28 Nov 2023 17:05:00 +0100 Subject: [PATCH 1/3] [LTO] Improve link time by using 2 process for linking --- compilation_flags_lto.file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compilation_flags_lto.file b/compilation_flags_lto.file index fd82fb55e99..9d5d6b22b2f 100644 --- a/compilation_flags_lto.file +++ b/compilation_flags_lto.file @@ -7,7 +7,7 @@ %define enable_lto 0 %endif %if "%{enable_lto}" == "1" -%define lto_build_flags -flto -fipa-icf -flto-odr-type-merging -fno-fat-lto-objects -Wodr +%define lto_build_flags -flto=2 -fipa-icf -flto-odr-type-merging -fno-fat-lto-objects -Wodr %else %define lto_build_flags %{nil} %endif From 0fb4e3ae461ef9a448e67b11bc79617a06e9173a Mon Sep 17 00:00:00 2001 From: Malik Shahzad Muzaffar Date: Tue, 28 Nov 2023 17:08:18 +0100 Subject: [PATCH 2/3] Update compilation_flags_lto.file --- compilation_flags_lto.file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compilation_flags_lto.file b/compilation_flags_lto.file index 9d5d6b22b2f..531b5102162 100644 --- a/compilation_flags_lto.file +++ b/compilation_flags_lto.file @@ -7,7 +7,7 @@ %define enable_lto 0 %endif %if "%{enable_lto}" == "1" -%define lto_build_flags -flto=2 -fipa-icf -flto-odr-type-merging -fno-fat-lto-objects -Wodr +%define lto_build_flags -flto=auto -fipa-icf -flto-odr-type-merging -fno-fat-lto-objects -Wodr %else %define lto_build_flags %{nil} %endif From 7344e899e875e541d53d098033cb33e6a756f507 Mon Sep 17 00:00:00 2001 From: Malik Shahzad Muzaffar Date: Wed, 29 Nov 2023 11:47:43 +0100 Subject: [PATCH 3/3] enable make job server for link commands if lto is enabled --- scram-project-build.file | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scram-project-build.file b/scram-project-build.file index d989ba26144..f3c919df7d5 100644 --- a/scram-project-build.file +++ b/scram-project-build.file @@ -55,7 +55,7 @@ BuildRequires: dwz %endif %if "%{?configtag:set}" != "set" -%define configtag V09-01-05 +%define configtag V09-01-06 %endif %if "%{?buildarch:set}" != "set"