polly, openmp & lldb aren't enabled for every platform So, add to PROJECTS only when enabled

This commit is contained in:
Sylvestre Ledru 2019-10-20 17:28:06 +02:00
parent 1e2fd2d1ba
commit d2c4dc9417
2 changed files with 15 additions and 2 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
llvm-toolchain-9 (1:9.0.0-2) unstable; urgency=medium
* polly, openmp & lldb aren't enabled for every platform
So, add to PROJECTS only when enabled
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 20 Oct 2019 17:27:50 +0200
llvm-toolchain-9 (1:9.0.0-1) unstable; urgency=medium llvm-toolchain-9 (1:9.0.0-1) unstable; urgency=medium
* Repack to move to git * Repack to move to git

8
debian/rules vendored
View File

@ -1,6 +1,7 @@
#!/usr/bin/make -f #!/usr/bin/make -f
PROJECTS="clang;clang-tools-extra;libcxx;libcxxabi;lldb;compiler-rt;lld;polly;debuginfo-tests;openmp" # polly, openmp & lldb aren't enabled for every platform
PROJECTS="clang;clang-tools-extra;libcxx;libcxxabi;compiler-rt;lld;debuginfo-tests"
TARGET_BUILD := build-llvm TARGET_BUILD := build-llvm
TARGET_BUILD_STAGE2 := $(TARGET_BUILD)/tools/clang/stage2-bins TARGET_BUILD_STAGE2 := $(TARGET_BUILD)/tools/clang/stage2-bins
@ -169,12 +170,16 @@ BOOTSTRAP_CFLAGS_EXTRA = $(CFLAGS_EXTRA) # Nothing for now. Keeping in case w
POLLY_ENABLE=yes POLLY_ENABLE=yes
ifneq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe)) ifneq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe))
POLLY_ENABLE=no POLLY_ENABLE=no
else
PROJECTS += ";polly"
endif endif
# Enable openmp (or not) # Enable openmp (or not)
OPENMP_ENABLE=yes OPENMP_ENABLE=yes
ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel powerpc powerpcspe riscv64 sparc64 s390x x32)) ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel powerpc powerpcspe riscv64 sparc64 s390x x32))
OPENMP_ENABLE=no OPENMP_ENABLE=no
else
PROJECTS= += ";openmp"
endif endif
RUN_TEST=yes RUN_TEST=yes
@ -223,6 +228,7 @@ else
# See https://llvm.org/bugs/show_bug.cgi?id=28898 # See https://llvm.org/bugs/show_bug.cgi?id=28898
# Enable it again as it seems it is fixed upstream https://bugs.llvm.org/show_bug.cgi?id=35291 # Enable it again as it seems it is fixed upstream https://bugs.llvm.org/show_bug.cgi?id=35291
# CMAKE_EXTRA += -DLLDB_DISABLE_LIBEDIT=ON # CMAKE_EXTRA += -DLLDB_DISABLE_LIBEDIT=ON
PROJECTS += ";lldb"
endif endif
LLD_ENABLE=yes LLD_ENABLE=yes