INFOPLIST_INSTALL_PATH[sdk=iphoneos*] =
INFOPLIST_INSTALL_PATH[sdk=*simulator*] =
INFOPLIST_INSTALL_PATH[sdk=watchos*] =
+INFOPLIST_OUTPUT_FORMAT = binary
+INFOPLIST_OUTPUT_FORMAT[sdk=macosx*] = xml
+APPLY_RULES_IN_COPY_FILES = YES
+PLIST_FILE_OUTPUT_FORMAT = binary
+PLIST_FILE_OUTPUT_FORMAT[sdk=macosx*] = xml
+
+// override presence of $(EXECUTABLE_VARIANT_SUFFIX) in the default EXECUTABLE_NAME rdar://26234727
+DYLIB_INSTALL_NAME_EXECUTABLE_NAME = $(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_SUFFIX)
+DYLIB_INSTALL_NAME_EXECUTABLE_PATH = $(DYLIB_INSTALL_NAME_EXECUTABLE_NAME)
+LD_DYLIB_INSTALL_NAME = $(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(DYLIB_INSTALL_NAME_EXECUTABLE_PATH)
/* Keys for use with os_once_alloc. */
/* Keys for Libsystem. */
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_NOTIFY 0
-#define OS_ALLOC_ONCE_KEY_LIBXPC 1
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_C 2
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_INFO 3
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_NETWORK 4
-#define OS_ALLOC_ONCE_KEY_LIBCACHE 5
-#define OS_ALLOC_ONCE_KEY_LIBCOMMONCRYPTO 6
-#define OS_ALLOC_ONCE_KEY_LIBDISPATCH 7
-#define OS_ALLOC_ONCE_KEY_LIBDYLD 8
-#define OS_ALLOC_ONCE_KEY_LIBKEYMGR 9
-#define OS_ALLOC_ONCE_KEY_LIBLAUNCH 10
-#define OS_ALLOC_ONCE_KEY_LIBMACHO 11
-#define OS_ALLOC_ONCE_KEY_OS_TRACE 12
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_BLOCKS 13
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_MALLOC 14
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PLATFORM 15
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PTHREAD 16
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_STATS 17
-#define OS_ALLOC_ONCE_KEY_LIBSECINIT 18
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_CORESERVICES 19
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_NOTIFY 0
+#define OS_ALLOC_ONCE_KEY_LIBXPC 1
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_C 2
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_INFO 3
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_NETWORK 4
+#define OS_ALLOC_ONCE_KEY_LIBCACHE 5
+#define OS_ALLOC_ONCE_KEY_LIBCOMMONCRYPTO 6
+#define OS_ALLOC_ONCE_KEY_LIBDISPATCH 7
+#define OS_ALLOC_ONCE_KEY_LIBDYLD 8
+#define OS_ALLOC_ONCE_KEY_LIBKEYMGR 9
+#define OS_ALLOC_ONCE_KEY_LIBLAUNCH 10
+#define OS_ALLOC_ONCE_KEY_LIBMACHO 11
+#define OS_ALLOC_ONCE_KEY_OS_TRACE 12
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_BLOCKS 13
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_MALLOC 14
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PLATFORM 15
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PTHREAD 16
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_STATS 17
+#define OS_ALLOC_ONCE_KEY_LIBSECINIT 18
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_CORESERVICES 19
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_SYMPTOMS 20
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PLATFORM_ASL 21
/* Keys OS_ALLOC_ONCE_KEY_MAX - 10 upwards are reserved for the system. */
#define OS_ALLOC_ONCE_KEY_RESERVED_0 (OS_ALLOC_ONCE_KEY_MAX - 10)
__libkernel_init(&libkernel_funcs, envp, apple, vars);
__libplatform_init(NULL, envp, apple, vars);
+
__pthread_init(&libpthread_funcs, envp, apple, vars);
+
_libc_initializer(&libc_funcs, envp, apple, vars);
// TODO: Move __malloc_init before __libc_init after breaking malloc's upward link to Libc
__malloc_init(apple);
-#if !TARGET_OS_SIMULATOR
+#if !TARGET_OS_SIMULATOR && !TARGET_OS_TV && !TARGET_OS_WATCH
/* <rdar://problem/9664631> */
__keymgr_initializer();
#endif
_dyld_initializer();
-
libdispatch_init();
_libxpc_initializer();