From 9aa69a675233fe4fc1dc40d2065b8659f639f838 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 4 Sep 2014 17:15:47 -0700 Subject: [PATCH] Add LOCAL_CLANG_*FLAGS for clang only flags. To be used only for some modules. Change-Id: I107ec37f11f738f860598f0c86c4ad7ec20c9011 --- core/binary.mk | 4 ++++ core/clear_vars.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/core/binary.mk b/core/binary.mk index 4162a1261..60cd4c631 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -927,6 +927,10 @@ endif ########################################################### ifeq ($(my_clang),true) +my_cflags += $(LOCAL_CLANG_CFLAGS) +my_cpplags += $(LOCAL_CLANG_CPPFLAGS) +my_asflags += $(LOCAL_CLANG_ASFLAGS) +my_ldflags += $(LOCAL_CLANG_LDFLAGS) my_cflags := $(call $(LOCAL_2ND_ARCH_VAR_PREFIX)convert-to-$(my_host)clang-flags,$(my_cflags)) my_cppflags := $(call $(LOCAL_2ND_ARCH_VAR_PREFIX)convert-to-$(my_host)clang-flags,$(my_cppflags)) my_asflags := $(call $(LOCAL_2ND_ARCH_VAR_PREFIX)convert-to-$(my_host)clang-flags,$(my_asflags)) diff --git a/core/clear_vars.mk b/core/clear_vars.mk index be73c0dc0..34cd1649a 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -45,11 +45,15 @@ LOCAL_YACCFLAGS:= LOCAL_ASFLAGS:= LOCAL_CFLAGS:= LOCAL_CPPFLAGS:= +LOCAL_CLANG_ASFLAGS:= +LOCAL_CLANG_CFLAGS:= +LOCAL_CLANG_CPPFLAGS:= LOCAL_CONLYFLAGS:= LOCAL_RTTI_FLAG:= LOCAL_C_INCLUDES:= LOCAL_EXPORT_C_INCLUDE_DIRS:= LOCAL_LDFLAGS:= +LOCAL_CLANG_LDFLAGS:= LOCAL_LDLIBS:= LOCAL_AAPT_FLAGS:= LOCAL_AAPT_INCLUDE_ALL_RESOURCES:=