Skip to content

Commit 0b1a8d8

Browse files
authored
feat: FreeBSD compatibility (#1635)
1 parent 53c6f32 commit 0b1a8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama_cpp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _load_shared_library(lib_base_name: str):
2828
# for llamacpp) and "llama" (default name for this repo)
2929
_lib_paths: List[pathlib.Path] = []
3030
# Determine the file extension based on the platform
31-
if sys.platform.startswith("linux"):
31+
if sys.platform.startswith("linux") or sys.platform.startswith("freebsd"):
3232
_lib_paths += [
3333
_base_path / f"lib{lib_base_name}.so",
3434
]

0 commit comments

Comments
 (0)