File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -120,9 +120,14 @@ if(ANDROID)
120
120
list (APPEND link_libraries log )
121
121
endif ()
122
122
123
- target_compile_options (llama_main PUBLIC ${_common_compile_options}
124
- -DET_USE_THREADPOOL )
125
- target_link_libraries (llama_main PUBLIC ${link_libraries} )
123
+ add_executable (llama_main ${_srcs} )
124
+ if (CMAKE_BUILD_TYPE STREQUAL "Release" )
125
+ target_link_options (llama_main PRIVATE "LINKER:--gc-sections,-s" )
126
+ endif ()
127
+
128
+ target_include_directories (llama_main PUBLIC ${_common_include_directories} )
129
+ target_link_libraries (llama_main PUBLIC llama_runner ${link_libraries} )
130
+ target_compile_options (llama_main PUBLIC ${_common_compile_options} )
126
131
127
132
if (APPLE )
128
133
target_link_options_shared_lib (executorch )
You can’t perform that action at this time.
0 commit comments