Disable LIBCXX_USE_COMPILER_RT on s390x, armel and x32 as it fails. See bug 52022

This commit is contained in:
Sylvestre Ledru 2021-10-04 11:52:15 +02:00
parent a112c44b6d
commit b092faff78
2 changed files with 6 additions and 1 deletions

2
debian/changelog vendored
View File

@ -2,7 +2,7 @@ llvm-toolchain-snapshot (1:14~++20211002060945+9452ec722ce0-1~exp1) experimental
* The triple change has been reverted. Keep it in Debian bring-back-triple-linux.diff
* Fix the "all" build
* Disable LIBCXX_USE_COMPILER_RT on s390x as it fails. See bug 52022
* Disable LIBCXX_USE_COMPILER_RT on s390x, armel and x32 as it fails. See bug 52022
* Adjust the libomp_start_tool visibility on armhf
* Be more flexible to install libomptarget-*.bc
(ex: libomptarget-new-nvptx-*.bc are new)

5
debian/rules vendored
View File

@ -56,6 +56,11 @@ ifneq (,$(filter $(DEB_HOST_ARCH),s390x))
LIBCXX_USE_COMPILER_RT := OFF
endif
ifneq (,$(filter $(DEB_HOST_ARCH),armel x32))
# See https://bugs.llvm.org/show_bug.cgi?id=52022
LIBCXX_USE_COMPILER_RT := OFF
endif
ifneq (,$(filter $(DEB_HOST_ARCH),i386 armel mips mipsel powerpc powerpcspe riscv64))
CMAKE_EXTRA += -DLIBOMP_LIBFLAGS="-latomic" -DCMAKE_SHARED_LINKER_FLAGS="-latomic"
endif