mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
build-script-impl: fix the build when distcc is not enabled
This commit is contained in:
@@ -1885,9 +1885,9 @@ for deployment_target in "${HOST_TARGET}" "${CROSS_COMPILE_TOOLS_DEPLOYMENT_TARG
|
||||
set -x
|
||||
mkdir -p "${build_dir}"
|
||||
if [[ -n "${DISTCC}" ]]; then
|
||||
EXTRA_DISTCC_OPTIONS="DISTCC_HOSTS=localhost,lzo,cpp"
|
||||
EXTRA_DISTCC_OPTIONS=("DISTCC_HOSTS=localhost,lzo,cpp")
|
||||
fi
|
||||
(cd "${build_dir}" && env "${EXTRA_DISTCC_OPTIONS}" "${CMAKE}" "${cmake_options[@]}" "${EXTRA_CMAKE_OPTIONS[@]}" "${source_dir}")
|
||||
(cd "${build_dir}" && env "${EXTRA_DISTCC_OPTIONS[@]}" "${CMAKE}" "${cmake_options[@]}" "${EXTRA_CMAKE_OPTIONS[@]}" "${source_dir}")
|
||||
{ set +x; } 2>/dev/null
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user