From 46ac9ab8f7e5f68ba3b655eea8f6d3c10ceb8c37 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 29 Jan 2024 21:03:09 +0800 Subject: [PATCH] Auto-update whisper.cpp to 1.5.4 (#3181) * Update whisper.cpp to 1.5.4 * pass CMAKE_SYSTEM_PROCESSOR for cmake --------- Co-authored-by: star9029 --- packages/w/whisper.cpp/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/w/whisper.cpp/xmake.lua b/packages/w/whisper.cpp/xmake.lua index 703bc8dbc..46419ae16 100644 --- a/packages/w/whisper.cpp/xmake.lua +++ b/packages/w/whisper.cpp/xmake.lua @@ -6,6 +6,7 @@ package("whisper.cpp") set_urls("https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v$(version).tar.gz", "https://github.com/ggerganov/whisper.cpp.git") + add_versions("1.5.4", "06eed84de310fdf5408527e41e863ac3b80b8603576ba0521177464b1b341a3a") add_versions("1.4.2", "1b988dcc77fca55f188dbc4e472f971a80854c1d44309cf3eaab9d5677f175e1") add_patches("1.4.2", path.join(os.scriptdir(), "patches", "1.4.2", "fix.patch"), "1330bdbb769aad37f0de6998ac9b0107423ec62385bbfb0a89a98c226daace48") @@ -45,6 +46,9 @@ package("whisper.cpp") table.insert(configs, "-DWHISPER_PERF=" .. (package:config("perf") and "ON" or "OFF")) table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF")) + if package:is_plat("mingw") then + table.insert(configs, "-DCMAKE_SYSTEM_PROCESSOR=" .. package:arch()) + end import("package.tools.cmake").install(package, configs) end)