Skip to content

Commit

Permalink
[build-script] Add swift binary to Foundation configure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishal Awadah committed Nov 11, 2015
1 parent b82afc7 commit e86f606
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -1672,13 +1672,20 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
;;
foundation)
SWIFTC_BIN="$(build_directory_bin $deployment_target swift)/swiftc"
SWIFT_BIN="$(build_directory_bin $deployment_target swift)/swift"
SWIFT_BUILD_PATH="$(build_directory $deployment_target swift)"
LLVM_BIN="$(build_directory_bin $deployment_target llvm)"
NINJA_BIN="ninja"

if [[ $BUILD_NINJA == 1 ]]; then
NINJA_BIN="$(build_directory $deployment_target ninja)/ninja"
fi

set -x
pushd "${FOUNDATION_SOURCE_DIR}"
SWIFTC="${SWIFTC_BIN}" CLANG="${LLVM_BIN}"/clang \
SWIFTC="${SWIFTC_BIN}" CLANG="${LLVM_BIN}"/clang SWIFT="${SWIFT_BIN}" \
SDKROOT="${SWIFT_BUILD_PATH}" BUILD_DIR="${build_dir}" ./configure
ninja
$NINJA_BIN
popd
{ set +x; } 2>/dev/null

Expand Down

0 comments on commit e86f606

Please sign in to comment.