From 75e7af10b9511caf2a57e813627dde85b7005907 Mon Sep 17 00:00:00 2001 From: Dan Austin Date: Wed, 6 Apr 2016 11:18:30 -0700 Subject: [PATCH] Adding gcc-specific disable of Wattributes in preparation for libcxx rebase. Change-Id: Ida49761801e58b2475e006525e3ea2bbad3731af --- core/binary.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/binary.mk b/core/binary.mk index 14c2b54a25..c5ac07e775 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -1331,6 +1331,10 @@ my_cflags := $(call $(LOCAL_2ND_ARCH_VAR_PREFIX)convert-to-$(my_host)clang-flags 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)) my_ldflags := $(call $(LOCAL_2ND_ARCH_VAR_PREFIX)convert-to-$(my_host)clang-flags,$(my_ldflags)) +else +# gcc does not handle hidden functions in a manner compatible with LLVM libcxx +# see b/27908145 +my_cflags += -Wno-attributes endif ifeq ($(my_fdo_build), true)