Disable OpenMP on unsupported architectures

This commit is contained in:
John Paul Adrian Glaubitz 2018-09-04 10:22:42 +02:00
parent e7ce26b199
commit 97de2c13ae
2 changed files with 11 additions and 3 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
llvm-toolchain-7 (1:7~+rc2-1~exp4) UNRELEASED; urgency=medium
[ John Paul Adrian Glaubitz ]
* Disable OpenMP on unsupported architectures powerpc,
powerpcspe, riscv64 and sparc64 (Closes: #907912)
-- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Tue, 04 Sep 2018 10:20:57 +0200
llvm-toolchain-7 (1:7~+rc2-1~exp3) experimental; urgency=medium llvm-toolchain-7 (1:7~+rc2-1~exp3) experimental; urgency=medium
* Remove libtool flex, bison, dejagnu, tcl, expect, * Remove libtool flex, bison, dejagnu, tcl, expect,

6
debian/rules vendored
View File

@ -262,7 +262,7 @@ override_dh_auto_configure: preconfigure
ln -s ../compiler-rt .; \ ln -s ../compiler-rt .; \
readlink compiler-rt readlink compiler-rt
ifeq (,$(filter $(DEB_HOST_ARCH), s390x)) ifeq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe riscv64 sparc64 s390x))
cd projects/ && \ cd projects/ && \
if test -h openmp; then \ if test -h openmp; then \
rm openmp; \ rm openmp; \
@ -428,7 +428,7 @@ build_doc:
echo "Generating manpage of $$f"; \ echo "Generating manpage of $$f"; \
LD_LIBRARY_PATH=$(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/:/usr/lib/*/libfakeroot help2man --no-info --version-string=$(LLVM_VERSION) $(TARGET_BUILD)/bin/$$f > debian/man/$$f-$(LLVM_VERSION).1; \ LD_LIBRARY_PATH=$(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/lib/:/usr/lib/*/libfakeroot help2man --no-info --version-string=$(LLVM_VERSION) $(TARGET_BUILD)/bin/$$f > debian/man/$$f-$(LLVM_VERSION).1; \
done done
ifeq (,$(filter $(DEB_HOST_ARCH), s390x)) ifeq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe riscv64 sparc64 s390x))
cd openmp/runtime && doxygen doc/doxygen/config cd openmp/runtime && doxygen doc/doxygen/config
cd openmp/runtime/doc/doxygen/generated/html/ && rm jquery.js && ln -s /usr/share/javascript/jquery/jquery.js cd openmp/runtime/doc/doxygen/generated/html/ && rm jquery.js && ln -s /usr/share/javascript/jquery/jquery.js
endif endif
@ -456,7 +456,7 @@ override_dh_auto_install:
ln -s libomp.so.$(SONAME_OPENMP) libomp.so ln -s libomp.so.$(SONAME_OPENMP) libomp.so
ifeq (,$(filter $(DEB_HOST_ARCH), s390x)) ifeq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe riscv64 sparc64 s390x))
mkdir -p debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/include/openmp mkdir -p debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/include/openmp
cp -f openmp/runtime/exports/common*/include/* debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/include/openmp cp -f openmp/runtime/exports/common*/include/* debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/include/openmp
endif endif