mirror of
https://github.com/darlinghq/darling-dyld.git
synced 2024-11-23 04:19:41 +00:00
17 lines
408 B
Bash
Executable File
17 lines
408 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
#LLBUILD=$(xcrun --sdk $SDKROOT --find llbuild 2> /dev/null)
|
|
NINJA=${LLBUILD:-`xcrun --sdk $SDKROOT --find ninja 2> /dev/null`}
|
|
INSTALL_TARGET="install"
|
|
|
|
if [ ! -z "$LLBUILD" ]; then
|
|
NINJA="$LLBUILD ninja build"
|
|
fi
|
|
|
|
if [ ! -z "$ONLY_BUILD_TEST" ]; then
|
|
INSTALL_TARGET="install-$BUILD_ONLY"
|
|
fi
|
|
|
|
${NINJA} -C ${DERIVED_FILES_DIR} ${INSTALL_TARGET} || exit_if_error $? "Ninja install failed"
|