Limit maximum parallel link jobs to 4 on sparc and sparc64

This commit is contained in:
John Paul Adrian Glaubitz 2020-10-31 15:09:21 +01:00
parent 76d149c934
commit 042d6084d5
2 changed files with 8 additions and 0 deletions

4
debian/changelog vendored
View File

@ -1,5 +1,6 @@
llvm-toolchain-snapshot (1:12~++20201028113421+ebfc427bbe0-1~exp1) UNRELEASED; urgency=medium llvm-toolchain-snapshot (1:12~++20201028113421+ebfc427bbe0-1~exp1) UNRELEASED; urgency=medium
[ Sylvestre Ledru ]
* experimental New snapshot release * experimental New snapshot release
* lld-use-link-atomic-i386.diff Try to workaround a linker error * lld-use-link-atomic-i386.diff Try to workaround a linker error
error: undefined reference to '__atomic_load' error: undefined reference to '__atomic_load'
@ -14,6 +15,9 @@ llvm-toolchain-snapshot (1:12~++20201028113421+ebfc427bbe0-1~exp1) UNRELEASED; u
* experimental New snapshot release * experimental New snapshot release
* experimental New snapshot release * experimental New snapshot release
[ John Paul Adrian Glaubitz ]
* Limit maximum parallel link jobs to 4 on sparc and sparc64
-- Sylvestre Ledru <sylvestre@debian.org> Wed, 28 Oct 2020 23:37:38 +0100 -- Sylvestre Ledru <sylvestre@debian.org> Wed, 28 Oct 2020 23:37:38 +0100
llvm-toolchain-snapshot (1:12~++20201016112810+f16cecf3752-1~exp1) UNRELEASED; urgency=medium llvm-toolchain-snapshot (1:12~++20201016112810+f16cecf3752-1~exp1) UNRELEASED; urgency=medium

4
debian/rules vendored
View File

@ -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" CMAKE_EXTRA += -DLIBOMP_LIBFLAGS="-latomic" -DCMAKE_SHARED_LINKER_FLAGS="-latomic"
endif 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)) ifneq (,$(filter $(DEB_HOST_ARCH),armel mipsel powerpc riscv64))
# For some reason, in the stage2 build, when clang is used to compile # 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. # itself. The atomic detection is failing on armel and riscv64. Forcing the inclusion everywhere.