Disable LLVM libc on bionic

This commit is contained in:
Sylvestre Ledru 2024-09-23 14:22:41 +02:00
parent 72d0ae4dfe
commit d7ecbb69b3
2 changed files with 12 additions and 6 deletions

1
debian/changelog vendored
View File

@ -2,6 +2,7 @@ llvm-toolchain-19 (1:19.1.0-5) unstable; urgency=medium
* Don't enable intel-pt on Ubuntu Bionic
* Add disabled info in the build log
* Disable LLVM libc on bionic
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 23 Sep 2024 13:20:42 +0200

17
debian/rules vendored
View File

@ -373,12 +373,13 @@ ifneq (,$(filter bolt-$(LLVM_VERSION), $(packages)))
endif
ifneq (,$(filter libllvmlibc-$(LLVM_VERSION)-dev, $(packages)))
RUNTIMES += ;libc
LLVM_LIBC_FULL_DISTRO := bionic
# Workaround on bionic
# See https://github.com/llvm/llvm-project/issues/82467#issuecomment-2033193448
ifeq (,$(filter-out $(LLVM_LIBC_FULL_DISTRO), $(DISTRO)))
STAGE_ALL_CMAKE_EXTRA += -DLLVM_LIBC_FULL_BUILD=ON
LLVM_LIBC_ENABLE=yes
LLVM_LIBC_DISABLE_DISTRO := bionic
ifeq (,$(filter $(DISTRO), $(LLVM_LIBC_DISABLE_DISTRO)))
RUNTIMES += ;libc
else
LLVM_LIBC_ENABLE=no
$(info LLVM libc disabled for $(DISTRO))
endif
endif
@ -760,6 +761,10 @@ stamps/preconfigure:
fi; \
fi
if test "$(LLVM_LIBC_ENABLE)" = "no"; then \
echo "" > debian/libllvmlibc-$(LLVM_VERSION)-dev.install; \
fi
# Conditionally enable install clangd grpc files
if test "$(CLANGD_GRPC_INSTALLED)" = "yes"; then \
sed -i -e "s|#grpc\ ||g" debian/libclang-$(LLVM_VERSION)-dev.install; \