From fbbf7310a83063cfd2d8fafe1de9e7b60ce84afd Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Mon, 5 Aug 2024 00:17:25 +0900 Subject: [PATCH] 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 --- main/libclc/APKBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/libclc/APKBUILD b/main/libclc/APKBUILD index d9bc4cc1d3c..816f1a850f9 100644 --- a/main/libclc/APKBUILD +++ b/main/libclc/APKBUILD @@ -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"