[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
This commit is contained in:
Mariusz Borsa 2022-05-27 16:15:07 -07:00
parent d3e4727907
commit e2adffc39c
1 changed files with 4 additions and 2 deletions

View File

@ -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 <TargetConditionals.h>
# 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