[Sanitizer][Darwin] Add SANITIZER_DRIVERKIT platform macro

This commit is contained in:
Julian Lettner 2022-05-23 11:18:15 -07:00
parent e8c20d995b
commit 806e8a1c8e
1 changed files with 6 additions and 0 deletions

View File

@ -85,6 +85,11 @@
# else
# define SANITIZER_IOSSIM 0
# endif
# if TARGET_OS_DRIVERKIT
# define SANITIZER_DRIVERKIT 1
# else
# define SANITIZER_DRIVERKIT 0
# endif
#else
# define SANITIZER_APPLE 0
# define SANITIZER_MAC SANITIZER_APPLE
@ -93,6 +98,7 @@
# define SANITIZER_TVOS 0
# define SANITIZER_IOSSIM 0
# define SANITIZER_OSX 0
# define SANITIZER_DRIVERKIT 0
#endif
#if defined(_WIN32)