mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
🔖 Bump ik-llama.cpp-cuda version to r3881.c519d417-1
This commit is contained in:
parent
a2279eab74
commit
1fde167101
1 changed files with 18 additions and 1 deletions
19
PKGBUILD
19
PKGBUILD
|
|
@ -74,9 +74,26 @@ build() {
|
|||
-DGGML_CUDA=ON
|
||||
-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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue