From 45787a87b34009ad1b5a77f4d08efe26751f6cca Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 5 Dec 2024 22:33:22 +0300 Subject: [PATCH] android: try to enable poly-opt and lto optimizations for release builds --- android/app/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/CMakeLists.txt b/android/app/CMakeLists.txt index cf827ec9..cac2cbb6 100644 --- a/android/app/CMakeLists.txt +++ b/android/app/CMakeLists.txt @@ -17,11 +17,12 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") set(BUILD_TYPE "debug") else() set(BUILD_TYPE "release") + list(APPEND WAF_EXTRA_ARGS --enable-poly-opt --enable-lto) endif() if(CMAKE_SIZEOF_VOID_P MATCHES "8") set(64BIT ON CACHE BOOL "" FORCE) - set(WAF_EXTRA_ARGS "-8") # only required for x86 when testing this cmakelist under linux + list(APPEND WAF_EXTRA_ARGS -8) # only required for x86 when testing this cmakelist under linux endif() set(CMAKE_VERBOSE_MAKEFILE ON)