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.
This commit is contained in:
bhubbb 2023-04-08 02:11:58 +10:00 committed by GitHub
parent c1950c3431
commit 698f7b5d63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,6 +166,8 @@ perplexity: examples/perplexity/perplexity.cpp ggml.o llama.o common.o
embedding: examples/embedding/embedding.cpp ggml.o llama.o common.o
$(CXX) $(CXXFLAGS) examples/embedding/embedding.cpp ggml.o llama.o common.o -o embedding $(LDFLAGS)
libllama.so: llama.o ggml.o
$(CXX) $(CXXFLAGS) -shared -fPIC -o libllama.so llama.o ggml.o $(LDFLAGS)
#
# Tests
#