aboutsummaryrefslogtreecommitdiff
path: root/deps/clog
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2018-12-09 02:39:13 -0800
committerMarat Dukhan <marat@fb.com>2018-12-09 02:39:13 -0800
commit647900fe42eef4b91dbd831728b7547ed2d84583 (patch)
tree6373fe793cd4b17df17fc515e2440d2f3bd3d325 /deps/clog
parenta07a09bd6912ffb4a01bc377fe27990ac5e55dac (diff)
downloadcpuinfo-647900fe42eef4b91dbd831728b7547ed2d84583.tar.gz
Use size optimization in Android.mk
Diffstat (limited to 'deps/clog')
-rw-r--r--deps/clog/jni/Android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/deps/clog/jni/Android.mk b/deps/clog/jni/Android.mk
index a4684f7..f7afb6d 100644
--- a/deps/clog/jni/Android.mk
+++ b/deps/clog/jni/Android.mk
@@ -6,5 +6,12 @@ LOCAL_SRC_FILES := src/clog.c
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_C_INCLUDES := $(LOCAL_EXPORT_C_INCLUDES)
LOCAL_CFLAGS := -std=c99 -Wall
+ifeq (,$(findstring 4.9,$(NDK_TOOLCHAIN)))
+# Clang compiler supports -Oz
+LOCAL_CFLAGS += -Oz
+else
+# gcc-4.9 compiler supports only -Os
+LOCAL_CFLAGS += -Os
+endif
LOCAL_EXPORT_LDLIBS := -llog
include $(BUILD_STATIC_LIBRARY)