mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-27 09:50:53 +00:00
Disable LLVM libc on bionic
This commit is contained in:
parent
72d0ae4dfe
commit
d7ecbb69b3
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -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
|
||||
|
||||
|
15
debian/rules
vendored
15
debian/rules
vendored
@ -373,12 +373,13 @@ ifneq (,$(filter bolt-$(LLVM_VERSION), $(packages)))
|
||||
endif
|
||||
|
||||
ifneq (,$(filter libllvmlibc-$(LLVM_VERSION)-dev, $(packages)))
|
||||
LLVM_LIBC_ENABLE=yes
|
||||
LLVM_LIBC_DISABLE_DISTRO := bionic
|
||||
ifeq (,$(filter $(DISTRO), $(LLVM_LIBC_DISABLE_DISTRO)))
|
||||
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
|
||||
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; \
|
||||
|
Loading…
Reference in New Issue
Block a user