Skip to content

Commit 698f7b5

Browse files
authored
make : add libllama.so target for llama-cpp-python (#797)
I was able to get llama-cpp-python working but only when I build libllama.so with make.
1 parent c1950c3 commit 698f7b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ perplexity: examples/perplexity/perplexity.cpp ggml.o llama.o common.o
166166
embedding: examples/embedding/embedding.cpp ggml.o llama.o common.o
167167
$(CXX) $(CXXFLAGS) examples/embedding/embedding.cpp ggml.o llama.o common.o -o embedding $(LDFLAGS)
168168

169+
libllama.so: llama.o ggml.o
170+
$(CXX) $(CXXFLAGS) -shared -fPIC -o libllama.so llama.o ggml.o $(LDFLAGS)
169171
#
170172
# Tests
171173
#

0 commit comments

Comments
 (0)