darwin.Libsystem: add definitions TARGET_OS_{IOS,WATCH,BRIDGE,TV,SIMULATOR,NANO} to TargetConditionals.h

These are defined in the SDK for Apple compilers and some projects assume those are defined unconditionally.

https://reviews.llvm.org/D103598
This commit is contained in:
Dmitry Kalinkin 2021-06-17 11:01:16 -04:00
parent 8a8243d995
commit 03137b50d2
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -69,7 +69,13 @@ appleDerivation' stdenv {
#define TARGET_OS_UNIX 0
#define TARGET_OS_EMBEDDED 0
#define TARGET_OS_IPHONE 0
#define TARGET_OS_IOS 0
#define TARGET_OS_WATCH 0
#define TARGET_OS_BRIDGE 0
#define TARGET_OS_TV 0
#define TARGET_OS_SIMULATOR 0
#define TARGET_IPHONE_SIMULATOR 0
#define TARGET_OS_NANO 0
#define TARGET_OS_LINUX 0
#define TARGET_CPU_PPC 0