Skip to content

Commit

Permalink
fix: build static by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Aug 13, 2024
1 parent ec8bec5 commit 1abac21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

OPTION(BUILD_SHARED_LIBS "Build shared libraries." ON)
OPTION(BUILD_SHARED_LIBS "Build shared libraries." OFF)

add_subdirectory(cpp-tiktoken)
add_subdirectory(sentencepiece)
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ ifeq ($(OS),Windows_NT)
@powershell -Command "cp build\Release\tokenizer.dll .\tokenizer\;"
else ifeq ($(shell uname -s),Linux)
@mkdir -p tokenizer; \
cp build/libtokenizer.so tokenizer/;
cp build/libtokenizer.a tokenizer/;
else
@mkdir -p tokenizer; \
cp build/libtokenizer.dylib tokenizer/;
cp build/libtokenizer.a tokenizer/;
endif

codesign:
Expand Down

0 comments on commit 1abac21

Please sign in to comment.