@@ -879,7 +879,7 @@ function false_true() {
879
879
}
880
880
881
881
function cmake_version() {
882
- echo $( " ${CMAKE} " --version | grep " cmake version" | cut -f 3 -d " " )
882
+ " ${CMAKE} " --version | grep " cmake version" | cut -f 3 -d " "
883
883
}
884
884
885
885
function cmake_needs_to_specify_standard_computed_defaults() {
@@ -914,7 +914,7 @@ function make_relative_symlink() {
914
914
# - "BUILD_STDLIB_DEPLOYMENT_TARGETS" are the Targets to build in this invocation
915
915
916
916
CROSS_COMPILE_HOSTS=($CROSS_COMPILE_HOSTS )
917
- for t in ${CROSS_COMPILE_HOSTS} ; do
917
+ for t in " ${CROSS_COMPILE_HOSTS[@]} " ; do
918
918
case ${t} in
919
919
iphone* | appletv* | watch* | linux-armv6 | linux-armv7 )
920
920
;;
@@ -1171,7 +1171,7 @@ function calculate_targets_for_host() {
1171
1171
SWIFT_TEST_TARGETS=()
1172
1172
1173
1173
# Get the list of Target platforms for the Host
1174
- local stdlib_targets=(` echo $( get_stdlib_targets_for_host ${host} ) ` )
1174
+ local stdlib_targets=($( get_stdlib_targets_for_host ${host} ) )
1175
1175
1176
1176
for stdlib_deployment_target in " ${stdlib_targets[@]} " ; do
1177
1177
local swift_sdk=
@@ -1315,7 +1315,7 @@ function calculate_targets_for_host() {
1315
1315
1316
1316
# Filter duplicate SWIFT_SDKs
1317
1317
# We will get them if building for multiple architecture variants
1318
- SWIFT_SDKS=(` echo " ${SWIFT_SDKS[@]} " | tr " " " \n" | sort -u | tr " \n" " " ` )
1318
+ SWIFT_SDKS=($( echo " ${SWIFT_SDKS[@]} " | tr " " " \n" | sort -u | tr " \n" " " ) )
1319
1319
1320
1320
# Get the values passed by `build-script`.
1321
1321
LEGACY_SWIFT_STDLIB_TARGETS=(${SWIFT_STDLIB_TARGETS[@]} )
0 commit comments