Fix armel build

On armel, DEB_HOST_ARCH_CPU is the generic arm actually, so we need to
use DEB_HOST_ARCH to precisely filter archs.

Fixes 43d03058ff
This commit is contained in:
Samuel Thibault 2022-01-14 10:15:41 +01:00
parent ec0b580536
commit 38be44b0dc

2
debian/rules vendored
View File

@ -96,7 +96,7 @@ ifneq (,$(filter $(DEB_HOST_ARCH),sparc sparc64))
STAGE_1_CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4 STAGE_1_CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4
endif endif
ifneq (,$(filter $(DEB_HOST_ARCH_CPU),i386 armel mipsel powerpc powerpcspe riscv64)) ifneq (,$(filter $(DEB_HOST_ARCH),i386 hurd-i386 kfreebsd-i386 armel mipsel powerpc powerpcspe 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 # itself. The atomic detection is failing on armel and riscv64. Forcing the inclusion
# everywhere and in all stages # everywhere and in all stages