summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-10-08 12:52:54 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-10-14 22:20:26 +0200
commita69940a9a208fe4b7a8e6db4392359f2842e9c16 (patch)
tree1a978085432f9013c08d6cf4e3ebcbb2a5e95919 /solenv
parentbc714f2401d0f912c6cc38abc0bc21f36202b1c6 (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> (cherry picked from commit cca8c5ad553e21bd55aef93757cd31626f9beba1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123521 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/com_GCC_defs.mk4
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 c369235275bc..51e72c1c1b4a 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -177,10 +177,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