Skip to content

Commit 8881550

Browse files
committed
Merge pull request #668 from practicalswift/build-script-cleanups
Bash: Build script cleanups
2 parents f637159 + 36ac5ec commit 8881550

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

utils/build-script-impl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ function set_deployment_target_based_options() {
390390
;;
391391
esac
392392

393-
native_llvm_build=$(build_directory macosx-x86_64 llvm)
394393
llvm_cmake_options=(
395394
-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="${cmake_osx_deployment_target}"
396395
-DCMAKE_OSX_SYSROOT:PATH="$(xcrun --sdk $xcrun_sdk_name --show-sdk-path)"
@@ -1040,7 +1039,6 @@ COMMON_CMAKE_OPTIONS=(
10401039
)
10411040

10421041
COMMON_C_FLAGS=""
1043-
COMMON_CXX_FLAGS=""
10441042

10451043
if [[ "${ENABLE_ASAN}" ]] ; then
10461044
COMMON_CMAKE_OPTIONS=(
@@ -1331,7 +1329,7 @@ function should_build_perftestsuite() {
13311329
return
13321330
fi
13331331

1334-
echo $(true_false "${BUILD_SWIFT_PERF_TESTSUITE}")
1332+
true_false "${BUILD_SWIFT_PERF_TESTSUITE}"
13351333
}
13361334

13371335
function set_swiftpm_bootstrap_command() {
@@ -1746,7 +1744,7 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
17461744
fi
17471745

17481746
# Get the build date
1749-
LLDB_BUILD_DATE=`date +%Y-%m-%d`
1747+
LLDB_BUILD_DATE=$(date +%Y-%m-%d)
17501748

17511749
case "$(uname -s)" in
17521750
Linux)
@@ -2174,10 +2172,10 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
21742172
continue
21752173
fi
21762174
LIB_TARGET="linux"
2177-
if [[ `uname -s` == "FreeBSD" ]]; then
2175+
if [[ $(uname -s) == "FreeBSD" ]]; then
21782176
LIB_TARGET="freebsd"
21792177
fi
2180-
if [[ `uname -s` == "Darwin" ]]; then
2178+
if [[ $(uname -s) == "Darwin" ]]; then
21812179
LIB_TARGET="macosx"
21822180
fi
21832181
XCTEST_INSTALL_PREFIX="${INSTALL_DESTDIR}"/"${INSTALL_PREFIX}"/lib/swift/"${LIB_TARGET}"

0 commit comments

Comments
 (0)