From 270953b4499f462f6a880101ee61c9a0b3e1ecb5 Mon Sep 17 00:00:00 2001 From: William Escande Date: Tue, 20 Dec 2022 16:01:07 -0800 Subject: Prevent spamming log for deprecated builtin Bug: 263208065 Test: build Change-Id: I7269fcf5a79e7e475268e3ce5f9d03a7b1b7856f --- base/template_util.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/template_util.h b/base/template_util.h index 8544aa2945..e4d03a24c3 100644 --- a/base/template_util.h +++ b/base/template_util.h @@ -22,8 +22,9 @@ // you attempt to mix an earlier version of libstdc++ with >= GCC5. But // that's unlikely to work out, especially as GCC5 changed ABI. #define CR_GLIBCXX_5_0_0 20150123 -#if (defined(__GNUC__) && __GNUC__ < 5) || \ - (defined(__GLIBCXX__) && __GLIBCXX__ == CR_GLIBCXX_5_0_0) +// `!defined(__clang__)` is a local android patch +#if !defined(__clang__) && ((defined(__GNUC__) && __GNUC__ < 5) || \ + (defined(__GLIBCXX__) && __GLIBCXX__ == CR_GLIBCXX_5_0_0)) #define CR_USE_FALLBACKS_FOR_OLD_EXPERIMENTAL_GLIBCXX #endif -- cgit v1.2.3