Browse Source

set ZT_NO_TYPE_PUNNING and -O3 for Android builds

Grant Limberg 10 years ago
parent
commit
a408e5f685
1 changed files with 1 additions and 1 deletions
  1. 1 1
      java/jni/Application.mk

+ 1 - 1
java/jni/Application.mk

@@ -1,5 +1,5 @@
 NDK_TOOLCHAIN_VERSION := clang
 NDK_TOOLCHAIN_VERSION := clang
 APP_STL := c++_static
 APP_STL := c++_static
-APP_CPPFLAGS := -O0 -fPIC -fPIE -fvectorize -Wall -fstack-protector -fexceptions -fno-strict-aliasing
+APP_CPPFLAGS := -O3 -fPIC -fPIE -fvectorize -Wall -fstack-protector -fexceptions -fno-strict-aliasing -DZT_NO_TYPE_PUNNING=1
 APP_PLATFORM := android-14
 APP_PLATFORM := android-14
 APP_ABI := all
 APP_ABI := all