0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 04:35:37 +00:00
Files
termux-packages/packages/llama-cpp/0001-search-dirs.patch
2025-03-14 22:32:17 +08:00

11 lines
430 B
Diff

--- a/ggml/src/ggml-backend-reg.cpp
+++ b/ggml/src/ggml-backend-reg.cpp
@@ -496,6 +496,7 @@
// default search paths: executable directory, current directory
search_paths.push_back(get_executable_path());
search_paths.push_back(fs::current_path());
+ search_paths.push_back(get_executable_path() / ".." / "lib");
} else {
search_paths.push_back(fs::u8path(user_search_path));
}