Skip to content

Commit 798d7ea

Browse files
committed
update
1 parent aa8e1e3 commit 798d7ea

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

android/core/src/main/cpp/CMakeLists.txt

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,9 @@ message("CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}")
88

99

1010
if (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)
3014
endif ()
3115

3216
set(LIB_CLASH_PATH "${CMAKE_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}/libclash.so")

0 commit comments

Comments
 (0)