diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-10-08 12:52:54 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-10-11 08:15:47 +0200 |
commit | cca8c5ad553e21bd55aef93757cd31626f9beba1 (patch) | |
tree | f2d7ead84f5f8316afc347d335afd6196858fbb4 | |
parent | d9275ea76b170e9cd74ebcd5af6255cb28e6cfdb (diff) |
use ThinLTO for Clang everywhere
No idea why it should be used only on Apple platforms and normal LTO
elsewhere. ThinLTO should build faster and the result should perform
roughly the same.
Change-Id: Ie93cf0ba810ee5bb2309fcbd3548a4847587b3d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123256
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index da00c5a8ed9e..a862612a5423 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -180,10 +180,8 @@ gb_CFLAGS_COMMON += -std=gnu89 ifeq ($(ENABLE_LTO),TRUE) ifeq ($(COM_IS_CLANG),TRUE) -ifneq (,$(index,iOS MACOSX,$(OS))) gb_LTOFLAGS := -flto=thin -else -gb_LTOFLAGS := -flto +ifeq (,$(index,iOS MACOSX,$(OS))) gb_LTOPLUGINFLAGS := --plugin LLVMgold.so endif else |