Fix build for apple tv and watch simulators

This commit is contained in:
pancake 2015-12-29 17:58:34 +01:00
parent c916d1ca18
commit afe90d520b
2 changed files with 14 additions and 1 deletions

View File

@ -18,7 +18,7 @@
#define LIBC_HAVE_SYSTEM 1
#endif
#if APPLE_SDK_APPLETVOS || APPLE_SDK_WATCHOS
#if APPLE_SDK_APPLETVOS || APPLE_SDK_WATCHOS || APPLE_SDK_APPLETVSIMULATOR || APPLE_SDK_WATCHSIMULATOR
#define LIBC_HAVE_FORK 0
#else
#define LIBC_HAVE_FORK 1

View File

@ -13,6 +13,19 @@ export PLGCFG=plugins.tiny.cfg
export CPU=x86_64
export SDK=iphonesimulator
#export CPU=arm64
export CPU=x86_64
export SDK=appletvsimulator
export CPU=x86_64
export SDK=watchsimulator
export CPU=armv7k
export SDK=watchos
export CPU=i386
export SDK=watchsimulator
export CPU=arm64
export SDK=appletvos