From bc883987a922f354e212932c48a13f1dc809b904 Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Sat, 31 Oct 2020 15:14:20 +0100 Subject: [PATCH] Limit maximum parallel link jobs to 4 on sparc and sparc64 --- debian/changelog | 7 +++++++ debian/rules | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/debian/changelog b/debian/changelog index f0c2212a..cb479c95 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +llvm-toolchain-11 (1:11.0.0-5) UNRELEASED; urgency=medium + + [ John Paul Adrian Glaubitz ] + * Limit maximum parallel link jobs to 4 on sparc and sparc64 + + -- John Paul Adrian Glaubitz Sat, 31 Oct 2020 15:13:44 +0100 + llvm-toolchain-11 (1:11.0.0-4) unstable; urgency=medium * Cherry-pick some fixes from diff --git a/debian/rules b/debian/rules index 478689a5..a7704a64 100755 --- a/debian/rules +++ b/debian/rules @@ -53,6 +53,10 @@ ifneq (,$(filter $(DEB_HOST_ARCH),i386 armel mips mipsel powerpc powerpcspe risc CMAKE_EXTRA += -DLIBOMP_LIBFLAGS="-latomic" -DCMAKE_SHARED_LINKER_FLAGS="-latomic" endif +ifneq (,$(filter $(DEB_HOST_ARCH),sparc sparc64)) +CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4 +endif + ifneq (,$(filter $(DEB_HOST_ARCH),armel mipsel powerpc riscv64)) # For some reason, in the stage2 build, when clang is used to compile # itself. The atomic detection is failing on armel and riscv64. Forcing the inclusion everywhere.