Enable optimisations when building release

This commit is contained in:
Simon 2023-03-02 21:42:34 +00:00
parent 6b40649ef5
commit a4b8ffc635

View file

@ -3,6 +3,12 @@ LOCAL_PATH := $(call my-dir)
JK3_BASE_CFLAGS = -DHAVE_GLES -DFINAL_BUILD -fexceptions -Wall -Wno-write-strings -Wno-comment -fno-caller-saves -fno-tree-vectorize -Wno-unused-but-set-variable -fvisibility=hidden
JK3_BASE_CPPFLAGS = -fvisibility-inlines-hidden -Wno-invalid-offsetof -fvisibility=hidden
# Optimisation flags required for release build so weapon selector beam is visible
ifeq ($(NDK_DEBUG), 0)
JK3_BASE_CFLAGS += -O1
JK3_BASE_CPPFLAGS += -O1
endif
JK3_BASE_LDLIBS =
#Armv7