Disable the build of libclc on old Ubuntu (Groovy & focal) as llvm-spir is too old on these version. See bug #52200

This commit is contained in:
Sylvestre Ledru 2021-10-18 16:15:10 +02:00
parent 7bd3d837c7
commit 1f06639f62
2 changed files with 11 additions and 3 deletions

7
debian/changelog vendored
View File

@ -1,4 +1,4 @@
llvm-toolchain-snapshot (1:14~++20211002060945+9452ec722ce0-1~exp1) experimental; urgency=medium
llvm-toolchain-snapshot (1:14~++20211018020854+59a994e8daee-1~exp1) UNRELEASED; urgency=medium
* Remove the triple patch. it is causing the library search path to fail.
Add a test in debian/qualify-clang.sh to verify we don't regress
@ -12,8 +12,11 @@ llvm-toolchain-snapshot (1:14~++20211002060945+9452ec722ce0-1~exp1) experimental
or ffi)
'Could NOT find Z3:'
* Add '-DCMAKE_FIND_DEBUG_MODE=true' to help wit debugging
* Disable the build of libclc on old Ubuntu (Groovy & focal)
as llvm-spir is too old on these version.
See bug #52200
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 02 Oct 2021 18:15:52 +0200
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 18 Oct 2021 16:14:57 +0200
llvm-toolchain-snapshot (1:14~++20210926041028+6063e6b499c7-1~exp1) experimental; urgency=medium

7
debian/rules vendored
View File

@ -161,7 +161,12 @@ endif
ifeq ($(shell which llvm-spirv),)
LLVM_SPIRV_INSTALLED = no
else
LLVM_SPIRV_INSTALLED = yes
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' llvm-spirv) ge 10.0.0 ; echo $$?),0)
# Too old llvm-spirv version are failing. See #52200
LLVM_SPIRV_INSTALLED = yes
else
LLVM_SPIRV_INSTALLED = no
endif
endif
LIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"