From 5c2e96fed3e68bb01df1c12ac2174173b544662c Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 2 Oct 2020 15:09:57 +0200 Subject: [PATCH] changed compiling on Android to use optimization for release builds --- src/Android.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Android.mk b/src/Android.mk index 9cc30473..0652311f 100644 --- a/src/Android.mk +++ b/src/Android.mk @@ -28,9 +28,11 @@ LOCAL_C_INCLUDES := \ DEBUG = -DDEBUG -g OPTIONS = $(DEBUG) -Wall # only for debugging purposes -# OPTIONS = -O2 -Wall # distribution build -# LOCAL_CFLAGS := -DTARGET_SDL2 +ifdef BUILD_DIST # distribution build +OPTIONS = -O2 -Wall +endif + LOCAL_CFLAGS := -DTARGET_SDL2 $(OPTIONS) # application source code files -- 2.34.1