Force the i386 triple -DLLVM_HOST_TRIPLE=i386-linux-gnu Sometimes, on i386, the library detection is failing (often on z3 or ffi) 'Could NOT find Z3:'

This commit is contained in:
Sylvestre Ledru 2021-10-11 23:30:15 +02:00
parent 69e414d677
commit dd97ff403b
2 changed files with 11 additions and 0 deletions

4
debian/changelog vendored
View File

@ -6,6 +6,10 @@ llvm-toolchain-snapshot (1:14~++20211002060945+9452ec722ce0-1~exp1) experimental
* Adjust the libomp_start_tool visibility on armhf
* Be more flexible to install libomptarget-*.bc
(ex: libomptarget-new-nvptx-*.bc are new)
* Force the i386 triple -DLLVM_HOST_TRIPLE=i386-linux-gnu
Sometimes, on i386, the library detection is failing (often on z3
or ffi)
'Could NOT find Z3:'
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 02 Oct 2021 18:15:52 +0200

7
debian/rules vendored
View File

@ -130,6 +130,13 @@ ifneq (,$(findstring $(DEB_HOST_ARCH),armhf))
CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=armv7l-unknown-linux-gnueabihf
endif
ifneq (,$(filter $(DEB_HOST_ARCH),i386))
# Sometimes, i386 needs help with the triple
CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=i386-linux-gnu
endif
ifneq (,$(filter $(DEB_HOST_ARCH),mips64el))
# avoid an issue with search path on mips64el
# https://bugs.llvm.org/show_bug.cgi?id=41204