From 5add0c61d68d19f9450ff140b3d7587efcb3f4bc Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 11 Feb 2021 13:20:42 -0800 Subject: [PATCH] Rename __ANDROID_UNGUARDED_AVAILABILITY__ -> __ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__. Bug: http://b/179067538 Test: treehugger Change-Id: I5945ca6e767212280a1981e6f78ec3c50acfb3f3 --- cc/config/clang.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cc/config/clang.go b/cc/config/clang.go index 71c7626d9..76186be57 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -150,6 +150,8 @@ func init() { "-Wunguarded-availability", // This macro allows the bionic versioning.h to indirectly determine whether the // option -Wunguarded-availability is on or not. + "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", + // TODO: remove this once prebuilt SDKs are only using the above macro instead. "-D__ANDROID_UNGUARDED_AVAILABILITY__", }, " "))