File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed
android/core/src/main/cpp Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -8,25 +8,9 @@ message("CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}")
88
99
1010if (NOT "${CMAKE_BUILD_TYPE} " STREQUAL "Debug" )
11- # set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
12- add_compile_options (-O3)
13-
14- add_compile_options (-flto)
15-
16- add_compile_options (-g0)
17-
18- add_compile_options (-ffunction-sections -fdata-sections)
19-
20- add_compile_options (-fno-exceptions -fno-rtti)
21-
22- add_link_options (
23- -flto
24- -Wl,--gc-sections
25- -Wl,--strip-all
26- -Wl,--exclude -libs=ALL
27- )
28-
29- add_compile_options (-fvisibility=hidden -fvisibility-inlines-hidden)
11+ set (CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
12+ add_compile_options (-O3 -flto -g0 -fno-exceptions -fno-rtti)
13+ add_link_options (-flto -Wl,--gc-sections,--strip-all )
3014endif ()
3115
3216set (LIB_CLASH_PATH "${CMAKE_SOURCE_DIR} /../jniLibs/${ANDROID_ABI} /libclash.so" )
You can’t perform that action at this time.
0 commit comments