forked from OSchip/llvm-project
[compiler-rt] add SANITIZER_OSX
This will allow us to make osx specific changes easier. Because apple silicon macs also run on aarch64, it was easy to confuse it with iOS. rdar://75302812 Reviewed By: yln Differential Revision: https://reviews.llvm.org/D100157
This commit is contained in:
parent
9cc417cbca
commit
20f38d0142
|
@ -59,6 +59,11 @@
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
# define SANITIZER_MAC 1
|
# define SANITIZER_MAC 1
|
||||||
# include <TargetConditionals.h>
|
# include <TargetConditionals.h>
|
||||||
|
# if TARGET_OS_OSX
|
||||||
|
# define SANITIZER_OSX 1
|
||||||
|
# else
|
||||||
|
# define SANITIZER_OSX 0
|
||||||
|
# endif
|
||||||
# if TARGET_OS_IPHONE
|
# if TARGET_OS_IPHONE
|
||||||
# define SANITIZER_IOS 1
|
# define SANITIZER_IOS 1
|
||||||
# else
|
# else
|
||||||
|
@ -73,6 +78,7 @@
|
||||||
# define SANITIZER_MAC 0
|
# define SANITIZER_MAC 0
|
||||||
# define SANITIZER_IOS 0
|
# define SANITIZER_IOS 0
|
||||||
# define SANITIZER_IOSSIM 0
|
# define SANITIZER_IOSSIM 0
|
||||||
|
# define SANITIZER_OSX 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__APPLE__) && TARGET_OS_IPHONE && TARGET_OS_WATCH
|
#if defined(__APPLE__) && TARGET_OS_IPHONE && TARGET_OS_WATCH
|
||||||
|
|
Loading…
Reference in New Issue