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 committed by Jordan Justen
parent 29308f4310
commit 265a70d7d0
No known key found for this signature in database
GPG Key ID: 9A85A5A3468AE8E3
2 changed files with 10 additions and 2 deletions

5
debian/changelog vendored
View File

@ -1,6 +1,9 @@
llvm-toolchain-13 (1:13.0.1-8) UNRELEASED; urgency=medium
* New changelog
[ Sylvestre Ledru ]
* Disable the build of libclc on old Ubuntu (Groovy & focal)
as llvm-spir is too old on these version.
See bug #52200
-- Jordan Justen <jljusten@debian.org> Wed, 26 Oct 2022 10:13:59 -0700

7
debian/rules vendored
View File

@ -217,7 +217,12 @@ endif
ifeq ($(shell command -v 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;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"