From ab180e0578cd77311d307770de0ddf0995030f06 Mon Sep 17 00:00:00 2001 From: jhen Date: Thu, 12 Oct 2023 10:10:22 +0800 Subject: [PATCH] fix(android): enable logging on debug mode --- android/src/main/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/CMakeLists.txt b/android/src/main/CMakeLists.txt index f63d1d1c..cc41ebf4 100644 --- a/android/src/main/CMakeLists.txt +++ b/android/src/main/CMakeLists.txt @@ -33,7 +33,7 @@ include_directories(${RNLLAMA_LIB_DIR}) target_compile_options(${RNLLAMA_LIBRARY_NAME} PRIVATE -DLM_GGML_USE_K_QUANTS -pthread) -if (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug") +if (${CMAKE_BUILD_TYPE} STREQUAL "Debug") target_compile_options(${RNLLAMA_LIBRARY_NAME} PRIVATE -DRNLLAMA_ANDROID_ENABLE_LOGGING) endif ()