6 echo "Usage: $0 BUILT_PRODUCTS_DIR" 1>&2
10 BUILT_PRODUCTS_DIR
="$1"
12 # We may not be building for a platform we can natively
13 # run on the build machine. Build a dedicate copy of zic
14 # for processing zoneinfo files
16 ZICHOST_SYMROOT
="${BUILT_PRODUCTS_DIR}/zic_host-sym"
17 ZICHOST_DSTROOT
="${BUILT_PRODUCTS_DIR}/zic_host-dst"
18 ZICHOST
="${ZICHOST_DSTROOT}/zic_host"
20 # A full environment causes build settings from a cross
21 # build (like PLATFORM_NAME) to leak into a native
25 if [ -n "${XCODE_DEVELOPER_USR_PATH}" ]; then
26 EXTRA_ARGS
="XCODE_DEVELOPER_USR_PATH=${XCODE_DEVELOPER_USR_PATH}"
32 XBS_IS_CHROOTED
="${XBS_IS_CHROOTED}" \
33 SCDontUseServer
="${SCDontUseServer}" \
34 __CFPREFERENCES_AVOID_DAEMON
="${__CFPREFERENCES_AVOID_DAEMON}" \
35 __CF_USER_TEXT_ENCODING
="${__CF_USER_TEXT_ENCODING}" \
39 TOOLCHAINS
="${TOOLCHAINS}" \
40 xcrun
-sdk "${SDKROOT}" xcodebuild
install \
43 SRCROOT
="${SRCROOT}" \
44 OBJROOT
="${OBJROOT}" \
45 SYMROOT
="${ZICHOST_SYMROOT}" \
46 DSTROOT
="${ZICHOST_DSTROOT}" \
47 ARCHS
='$(NATIVE_ARCH_ACTUAL)' \
48 PRODUCT_NAME
=zic_host \