From b42ff9916eddde26eb505d6f76e51d02d4c0d267 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 27 Feb 2024 14:06:38 +0100 Subject: [PATCH] only enable libc on 3 archs --- debian/rules | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index b298f9e3..f26330ce 100755 --- a/debian/rules +++ b/debian/rules @@ -25,15 +25,15 @@ LLVM_VERSION_NEXT := $(shell echo $(LLVM_VERSION_FULL) | awk -F. '{ OFS="."; $$N # disable fixfilepath in favor of the llvm-project supplied flavor, disable lto # remove +time64,+lfs once the time64_t transition starts ifeq ($(DEB_HOST_ARCH),i386) - RUNTIMES = compiler-rt;libcxx;libcxxabi;libc + RUNTIMES = compiler-rt;libcxx;libcxxabi export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto else ifeq ($(DEB_HOST_ARCH_BITS),32) - RUNTIMES = libcxx;libcxxabi;libc + RUNTIMES = libcxx;libcxxabi export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto abi=+time64,+lfs skip_packages = -Nlibclang-rt-$(LLVM_VERSION)-dev else - RUNTIMES = compiler-rt;libcxx;libcxxabi;libc + RUNTIMES = compiler-rt;libcxx;libcxxabi ifeq ($(DEB_HOST_ARCH),mips64el) export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath,-fixdebugpath optimize=-lto hardening=-stackprotector,-stackprotectorstrong else @@ -321,6 +321,10 @@ ifneq (,$(filter bolt-$(LLVM_VERSION), $(packages))) PROJECTS += ;bolt endif +ifneq (,$(filter libllvmlibc--$(LLVM_VERSION)-dev, $(packages))) + RUNTIMES += ;libc +endif + # flang is only for 64bits ifneq (,$(filter flang-$(LLVM_VERSION), $(packages))) PROJECTS += ;flang