Disable LTO for now

This commit is contained in:
Sylvestre Ledru 2022-10-12 16:16:36 +02:00
parent 71e2f5a23e
commit a5b9f33284
2 changed files with 10 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
llvm-toolchain-15 (1:15.0.2-2~exp6) experimental; urgency=medium
* Disable LTO for now
--
llvm-toolchain-15 (1:15.0.2-2~exp5) experimental; urgency=medium
* Only enable LTO for some archs

6
debian/rules vendored
View File

@ -403,8 +403,10 @@ LTO_DISABLE_ARCHS := i386 armhf s390x ppc64 x32
ifeq (,$(filter-out $(LTO_DISABLE_ARCHS), $(DEB_HOST_ARCH)))
LTO_ENABLE=no
else
LTO_ENABLE=yes
STAGE_2_CMAKE_EXTRA += -DLLVM_ENABLE_LTO="On"
# Disable for now because of
# https://github.com/llvm/llvm-project/issues/58317#issuecomment-1276190743
# LTO_ENABLE=yes
# STAGE_2_CMAKE_EXTRA += -DLLVM_ENABLE_LTO="On"
endif
endif