Skip to content

Commit

Permalink
added back android log library
Browse files Browse the repository at this point in the history
  • Loading branch information
l3utterfly committed Nov 16, 2024
1 parent b68eda1 commit 166952a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ggml/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,6 @@ endif()

# ggml

# Search for the 'log' library on Android
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
find_library(log-lib log)
set(GGML_EXTRA_LIBS ${GGML_EXTRA_LIBS} ${log-lib})
endif()

add_library(ggml-base
../include/ggml.h
../include/ggml-alloc.h
Expand All @@ -223,6 +217,14 @@ add_library(ggml-base
ggml-aarch64.c
ggml-aarch64.h)

# Search for the 'log' library on Android
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
find_library(log-lib log)
set(GGML_EXTRA_LIBS ${GGML_EXTRA_LIBS} ${log-lib})

target_link_libraries(ggml-base PUBLIC ${GGML_EXTRA_LIBS})
endif()

target_include_directories(ggml-base PRIVATE .)

add_library(ggml
Expand Down
1 change: 1 addition & 0 deletions ggml/src/kompute
Submodule kompute added at 456519

0 comments on commit 166952a

Please sign in to comment.