From b7963ae8925d12e0054f68433e1dab3c32882850 Mon Sep 17 00:00:00 2001 From: Jing Yu Date: Wed, 15 Dec 2010 14:28:35 -0800 Subject: Override ALWAYS_INLINE attribute with inline. ALWAYS_INLINE attribute was abused in libwebcore.so. By overriding it with normal inline attribute, the size of libwebcore.so is reduced by 3.71%, wihtout noticable performance regression on webcore_test benchmark. Change-Id: Icc1710726f28a93c3be660ba7c22c8c356748460 --- Android.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index 79e968e..f2ba162 100644 --- a/Android.mk +++ b/Android.mk @@ -290,6 +290,7 @@ LOCAL_CFLAGS += -Wno-endif-labels -Wno-import -Wno-format LOCAL_CFLAGS += -fno-strict-aliasing LOCAL_CFLAGS += -include "WebCorePrefix.h" LOCAL_CFLAGS += -fvisibility=hidden +LOCAL_CFLAGS += -DALWAYS_INLINE=inline # Make sure assert.h is included before assert is defined LOCAL_CFLAGS += -include "assert.h" ifeq ($(HTTP_STACK),chrome) -- cgit v1.1