Skip to content

Commit

Permalink
Fix CMake for Android to avoid unlinked android log symbol (mlc-ai#1501)
Browse files Browse the repository at this point in the history
Fix CMake for Android to avoid unlinked android log symbol in tokenizers.
  • Loading branch information
xunkai55 authored Dec 27, 2023
1 parent cd84bed commit 09ec207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ target_compile_definitions(mlc_cli_objs PRIVATE ${MLC_LLM_COMPILE_DEFS})
if (CMAKE_SYSTEM_NAME STREQUAL "Android")
target_link_libraries(mlc_llm PRIVATE log)
target_link_libraries(mlc_chat_cli PRIVATE log)
target_link_libraries(tokenizers_cpp PRIVATE log)
endif()

if (MLC_LLM_INSTALL_STATIC_LIB)
Expand Down

0 comments on commit 09ec207

Please sign in to comment.