diff --git a/PKGBUILD b/PKGBUILD index 147031e91018e..9196cf9eeb96a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -95,6 +95,12 @@ build() { ) fi + # 允许用户自定义构建选项 + if [[ -n "$LLAMA_BUILD_EXTRA_ARGS" ]]; then + msg2 "Applied custom CMake build args: $LLAMA_BUILD_EXTRA_ARGS" + _cmake_options+=($LLAMA_BUILD_EXTRA_ARGS) + fi + cmake "${_cmake_options[@]}" cmake --build build --config Release -- -j $(nproc) }