From e2adffc39c52d60eff655e356c13c0052737863e Mon Sep 17 00:00:00 2001 From: Mariusz Borsa Date: Fri, 27 May 2022 16:15:07 -0700 Subject: [PATCH] [Sanitizers][Darwin] Deprecate SANITIZER_MAC - fail compilation if encountered Previous couple commits replaced SANITIZER_MAC with SANITIZER_APPLE in bulk. This change will prompt anyone still trying to use SANITIZER_MAC to rename. Differential Revision: https://reviews.llvm.org/D126577 --- compiler-rt/lib/sanitizer_common/sanitizer_platform.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h index 66141dc..027e662 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h @@ -65,7 +65,8 @@ #if defined(__APPLE__) # define SANITIZER_APPLE 1 // SANITIZER_MAC will be deprecated/removed in the future -# define SANITIZER_MAC SANITIZER_APPLE +# define SANITIZER_MAC \ + error "SANITIZER_MAC will be removed, please use SANITIZER_APPLE" # include # if TARGET_OS_OSX # define SANITIZER_OSX 1 @@ -99,7 +100,8 @@ # endif #else # define SANITIZER_APPLE 0 -# define SANITIZER_MAC SANITIZER_APPLE +# define SANITIZER_MAC \ + error "SANITIZER_MAC will be removed, please use SANITIZER_APPLE" # define SANITIZER_OSX 0 # define SANITIZER_IOS 0 # define SANITIZER_WATCHOS 0 -- 2.7.4