diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h index 66141dc091145..027e662a03f79 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