From 08dfdeb5a8c214b023bbc1b0302e629de66293bd Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 13 Mar 2024 14:08:58 +0100 Subject: [PATCH] finish the management when libc is disabled --- debian/rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/rules b/debian/rules index ec8e1ec2..22f63f8b 100755 --- a/debian/rules +++ b/debian/rules @@ -1328,6 +1328,10 @@ endif if test "$(LLDB_PYTHON_ENABLE)" = no; then \ echo "" > debian/python3-lldb-$(LLVM_VERSION).install; \ fi +# if libc isn't built, remove what we want to install + if test "$(LIBC_ENABLE)" = no; then \ + echo "" > debian/libllvmlibc-$(LLVM_VERSION)-dev.install; \ + fi # Remove some mlir example rm -f $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/libMyExtensionCh*.a @@ -1481,7 +1485,9 @@ endif ninja $(VERBOSE) -C $(TARGET_BUILD_STAGE2) check-libcxx || true # Libc +ifeq (${LIBC_ENABLE},yes) ninja $(VERBOSE) -C $(TARGET_BUILD_STAGE2) check-libc || true +endif # Libcxxabi ninja $(VERBOSE) -C $(TARGET_BUILD_STAGE2) check-libcxxabi || true