aboutsummaryrefslogtreecommitdiff
path: root/misc/py-llama-cpp-python/files/patch-llama__cpp_llama__cpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/py-llama-cpp-python/files/patch-llama__cpp_llama__cpp.py')
-rw-r--r--misc/py-llama-cpp-python/files/patch-llama__cpp_llama__cpp.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/py-llama-cpp-python/files/patch-llama__cpp_llama__cpp.py b/misc/py-llama-cpp-python/files/patch-llama__cpp_llama__cpp.py
new file mode 100644
index 000000000000..64e43300b493
--- /dev/null
+++ b/misc/py-llama-cpp-python/files/patch-llama__cpp_llama__cpp.py
@@ -0,0 +1,11 @@
+--- llama_cpp/llama_cpp.py.orig 2024-07-28 03:36:26 UTC
++++ llama_cpp/llama_cpp.py
+@@ -28,7 +28,7 @@ def _load_shared_library(lib_base_name: str):
+ # for llamacpp) and "llama" (default name for this repo)
+ _lib_paths: List[pathlib.Path] = []
+ # Determine the file extension based on the platform
+- if sys.platform.startswith("linux"):
++ if sys.platform.startswith("linux") or sys.platform.startswith("freebsd"):
+ _lib_paths += [
+ _base_path / f"lib{lib_base_name}.so",
+ ]