On bionic & buster, for apt.llvm.org, pass -DLLVM_ENABLE_ZSTD=OFF as libzstd is too old

This commit is contained in:
Sylvestre Ledru 2023-09-08 17:26:39 +02:00
parent 26dacf93c2
commit 27b9a9bc59
2 changed files with 13 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-16 (1:16.0.6-14) UNRELEASED; urgency=medium
* On bionic & buster, for apt.llvm.org, pass -DLLVM_ENABLE_ZSTD=OFF
as libzstd is too old
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 08 Sep 2023 17:26:20 +0200
llvm-toolchain-16 (1:16.0.6-13) unstable; urgency=medium
[ Gianfranco Costamagna ]

6
debian/rules vendored
View File

@ -423,6 +423,12 @@ ifneq (,$(filter $(DEB_HOST_ARCH_OS),linux))
STAGE_2_CMAKE_EXTRA += -DLLVM_USE_PERF=ON -DLLVM_ENABLE_LIBPFM=ON
endif
LLVM_ENABLE_ZSTD_DISABLE_DISTRO := bionic buster
# Disable zstd on old distro, fails on lld
ifeq (,$(filter-out $(LLVM_ENABLE_ZSTD_DISABLE_DISTRO), $(DISTRO)))
STAGE_ALL_CMAKE_EXTRA += -DLLVM_ENABLE_ZSTD=OFF
endif
LTO_ENABLE=no
# Only enable it for archs supporting gold
ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))