We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aec2549 commit 96ddaa2Copy full SHA for 96ddaa2
examples/models/llama2/CMakeLists.txt
@@ -175,8 +175,8 @@ if(ANDROID)
175
endif()
176
177
add_executable(llama_main ${_srcs})
178
-if(CMAKE_BUILD_TYPE EQUAL "RELEASE")
179
- target_link_options(llama_main PRIVATE "LINKER:--gc-sections")
+if(CMAKE_BUILD_TYPE STREQUAL "Release")
+ target_link_options(llama_main PRIVATE "LINKER:--gc-sections,-s")
180
181
182
target_include_directories(llama_main PUBLIC ${_common_include_directories})
0 commit comments