mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 23:44:01 +02:00
17 lines
656 B
Plaintext
17 lines
656 B
Plaintext
Synchronize with devel/libggml. This patch isn't really needed,
|
|
because the backend isn't loaded dynamically.
|
|
|
|
Index: ggml/src/ggml-backend-reg.cpp
|
|
--- ggml/src/ggml-backend-reg.cpp.orig
|
|
+++ ggml/src/ggml-backend-reg.cpp
|
|
@@ -482,7 +482,9 @@ static ggml_backend_reg_t ggml_backend_load_best(const
|
|
search_paths.push_back(fs::u8path(GGML_BACKEND_DIR));
|
|
#endif
|
|
// default search paths: executable directory, current directory
|
|
+#ifndef __OpenBSD__
|
|
search_paths.push_back(get_executable_path());
|
|
+#endif
|
|
search_paths.push_back(fs::current_path());
|
|
} else {
|
|
search_paths.push_back(fs::u8path(user_search_path));
|