main/libclc: specify targets to build and do not ship broken clspv

clspv is generally not used and tests are failing because of it.

Follow other distributions and don't ship it.
This allows us to enable the tests for libclc in the following commit.

Signed-off-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
David Heidelberg 2024-08-05 00:17:25 +09:00 committed by Patrycja Rosa
parent b258f39fac
commit fbbf7310a8

View File

@ -2,7 +2,7 @@
pkgname=libclc
# follow llvm versioning
pkgver=18.1.8
pkgrel=0
pkgrel=1
_llvmver=${pkgver%%.*}
pkgdesc="Open source implementation of the library requirements of the OpenCL C programming language"
url="https://libclc.llvm.org/"
@ -32,6 +32,7 @@ build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl;spirv-mesa3d-;spirv64-mesa3d-" \
-DLLVM_CONFIG="llvm-config-$_llvmver" \
-DLLVM_SPIRV=/usr/bin/llvm-spirv \
-DCMAKE_MODULE_PATH="$srcdir/cmake-$pkgver.src/Modules"