Use icf to further minimize binary size

This commit is contained in:
LoveSy 2024-06-09 16:33:24 +08:00 committed by John Wu
parent e158cfddfa
commit 19f15f16f6

View File

@ -1,8 +1,8 @@
APP_BUILD_SCRIPT := src/Android.mk APP_BUILD_SCRIPT := src/Android.mk
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64 APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
APP_CFLAGS := -Wall -Oz -fomit-frame-pointer -flto APP_CFLAGS := -Wall -Oz -fomit-frame-pointer -flto
APP_LDFLAGS := -flto APP_LDFLAGS := -flto -Wl,--icf=all
APP_CPPFLAGS := -std=c++20 APP_CPPFLAGS := -std=c++23
APP_STL := none APP_STL := none
APP_PLATFORM := android-23 APP_PLATFORM := android-23
APP_THIN_ARCHIVE := true APP_THIN_ARCHIVE := true