Set LLVM_HOST_TRIPLE to x86_64-linux-gnux32 on x32

This commit is contained in:
John Paul Adrian Glaubitz 2021-04-06 09:12:23 +02:00
parent 2cc6c3aeed
commit 6a524ab373
2 changed files with 4 additions and 0 deletions

1
debian/changelog vendored
View File

@ -15,6 +15,7 @@ llvm-toolchain-snapshot (1:13~++20210403031832+89afec348dbd-1~exp1) UNRELEASED;
* Enable building the new experimental M68k backend
* Add upstream patch D98537 to implement AsmParser on m68k
* Add upstream patch D98540 to implement Disassembler on m68k
* Set LLVM_HOST_TRIPLE to x86_64-linux-gnux32 on x32
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 03 Apr 2021 15:22:07 +0200

3
debian/rules vendored
View File

@ -119,6 +119,9 @@ ifneq (,$(filter $(DEB_HOST_ARCH),mips64el))
CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=mips64el-linux-gnuabi64
endif
ifneq (,$(filter $(DEB_HOST_ARCH),x32))
CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=x86_64-linux-gnux32
endif
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++-$(GCC_VERSION)) ge 4.8-20121128-1~ ; echo $$?),0)
control_vars = '-Vdep:devlibs=libstdc++-$(GCC_VERSION)-dev, libgcc-$(GCC_VERSION)-dev' \