From 0df2ba54433e13639cc9498b37b374d4e38b8ea5 Mon Sep 17 00:00:00 2001 From: Orion Date: Sat, 6 Sep 2025 08:45:01 +0000 Subject: [PATCH] :bookmark: Bump ik-llama.cpp version to r3881.c519d417-1 --- PKGBUILD | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 49c9f665a8902..a91c3e77b8c0e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -72,9 +72,25 @@ build() { -DGGML_BLAS_VENDOR=OpenBLAS -DGGML_LTO=ON -DGGML_RPC=ON - -DGGML_NATIVE=ON -Wno-dev ) + + # 检查是否在 CI 环境中构建 + if [ -n "$CI" ] && [ "$CI" != 0 ]; then + msg2 "CI = $CI detected, building universal package" + # 启用通用构建 + _cmake_options+=( + -DGGML_BACKEND_DL=ON + -DGGML_CPU_ALL_VARIANTS=ON + -DGGML_NATIVE=OFF + ) + else + # 本地构建, 针对当前设备优化 + _cmake_options+=( + -DGGML_NATIVE=ON + ) + fi + cmake "${_cmake_options[@]}" cmake --build build --config Release -- -j $(nproc) }