From b168b8db8b9be9271b89fc984480a0f7194b5bd9 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Sun, 10 Mar 2024 23:42:18 +0000 Subject: [PATCH] macros: Sync with boulder-rs for flto fixes Signed-off-by: Ikey Doherty --- data/macros/arch/base.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/data/macros/arch/base.yml b/data/macros/arch/base.yml index 75b0ec4c2f..6a62e13f57 100644 --- a/data/macros/arch/base.yml +++ b/data/macros/arch/base.yml @@ -368,12 +368,15 @@ flags : # Enable LTO optimisations (OFF) - lto-full: - c : "-flto" - cxx : "-flto" - ld : "-flto" + gnu: + c : "-flto=%(jobs)" + cxx : "-flto=%(jobs)" + ld : "-flto=%(jobs)" llvm: + c : "-flto" + cxx : "-flto" d : "-flto=full" - + ld : "-flto" # Enable Thin-LTO optimisations (OFF) - lto-thin: