Commit 7972f83 1 parent 1088300 commit 7972f83 Copy full SHA for 7972f83
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,17 @@ function(build_library target_name cpu_flags)
44
44
target_compile_options (${target_name} PRIVATE -DRNLLAMA_ANDROID_ENABLE_LOGGING)
45
45
endif ()
46
46
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")
48
50
target_compile_options (${target_name} PRIVATE -O3 -DNDEBUG)
49
51
target_compile_options (${target_name} PRIVATE -fvisibility=hidden -fvisibility-inlines-hidden)
50
52
target_compile_options (${target_name} PRIVATE -ffunction-sections -fdata-sections)
51
53
52
54
target_link_options (${target_name} PRIVATE -Wl,--gc-sections)
53
55
target_link_options (${target_name} PRIVATE -Wl,--exclude -libs,ALL )
54
56
target_link_options (${target_name} PRIVATE -flto)
55
- endif ()
57
+ # endif ()
56
58
endfunction ()
57
59
58
60
# Default target (no specific CPU features)
You can’t perform that action at this time.
0 commit comments