Skip to content

Commit 7972f83

Browse files
committed
fix(android): revert Debug comment
1 parent 1088300 commit 7972f83

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

android/src/main/CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,17 @@ function(build_library target_name cpu_flags)
4444
target_compile_options(${target_name} PRIVATE -DRNLLAMA_ANDROID_ENABLE_LOGGING)
4545
endif ()
4646

47-
if (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug")
47+
# NOTE: If you want to debug the native code, you can uncomment if and endif
48+
# Note that it will be extremely slow
49+
# if (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug")
4850
target_compile_options(${target_name} PRIVATE -O3 -DNDEBUG)
4951
target_compile_options(${target_name} PRIVATE -fvisibility=hidden -fvisibility-inlines-hidden)
5052
target_compile_options(${target_name} PRIVATE -ffunction-sections -fdata-sections)
5153

5254
target_link_options(${target_name} PRIVATE -Wl,--gc-sections)
5355
target_link_options(${target_name} PRIVATE -Wl,--exclude-libs,ALL)
5456
target_link_options(${target_name} PRIVATE -flto)
55-
endif ()
57+
# endif ()
5658
endfunction()
5759

5860
# Default target (no specific CPU features)

0 commit comments

Comments
 (0)