aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-07-17 16:39:21 -0700
committerTim Murray <timmurray@google.com>2014-07-24 12:24:45 -0700
commitb3436a3feed4dcb22dafc8f7818b742cacaddd1d (patch)
tree628f63704f78afaf3020b8d0317203fbaf38cedb
parentaa94648f22d1e58963d6145de9b2702a9806fdfd (diff)
downloadlibunwind-b3436a3feed4dcb22dafc8f7818b742cacaddd1d.tar.gz
Update makefile for host clang builds.
bug 16172793 Change-Id: If7484c5dbcccce7d925bec97bff0a3e4c30e9434
-rw-r--r--Android.build.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/Android.build.mk b/Android.build.mk
index 54bee7a2..85d540a4 100644
--- a/Android.build.mk
+++ b/Android.build.mk
@@ -19,6 +19,12 @@ include $(CLEAR_VARS)
LOCAL_MODULE := $(module)
LOCAL_MODULE_TAGS := $(module_tag)
ifeq ($(build_type),host)
+# Flags for host clang builds
+LOCAL_CFLAGS := -Wno-header-guard \
+ -Wno-absolute-value \
+ -Wno-unknown-warning-option \
+ -Wno-extern-c-compat
+
# Always make host multilib
LOCAL_MULTILIB := both
else
@@ -36,7 +42,7 @@ LOCAL_ADDITIONAL_DEPENDENCIES := \
$(LOCAL_PATH)/Android.mk \
$(LOCAL_PATH)/Android.build.mk \
-LOCAL_CFLAGS := \
+LOCAL_CFLAGS += \
$(common_cflags) \
$(common_cflags_$(build_type)) \
$($(module)_cflags) \