From 19f15f16f6e9a446a507bf3bec3f9e8f4334573f Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sun, 9 Jun 2024 16:33:24 +0800 Subject: [PATCH] Use icf to further minimize binary size --- native/src/Application.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/src/Application.mk b/native/src/Application.mk index 9b880bf6f..7b6ae987f 100644 --- a/native/src/Application.mk +++ b/native/src/Application.mk @@ -1,8 +1,8 @@ APP_BUILD_SCRIPT := src/Android.mk APP_ABI := armeabi-v7a arm64-v8a x86 x86_64 APP_CFLAGS := -Wall -Oz -fomit-frame-pointer -flto -APP_LDFLAGS := -flto -APP_CPPFLAGS := -std=c++20 +APP_LDFLAGS := -flto -Wl,--icf=all +APP_CPPFLAGS := -std=c++23 APP_STL := none APP_PLATFORM := android-23 APP_THIN_ARCHIVE := true