Skip to content

Commit c1bdb4f

Browse files
committed
Explain rationale behind this change
1 parent 330299d commit c1bdb4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/build-script-impl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,13 @@ function set_build_options_for_host() {
542542
esac
543543

544544
if [[ "${DARWIN_SDK_DEPLOYMENT_TARGETS}" != "" ]]; then
545+
# IFS is immediately unset after its use to avoid unwanted
546+
# replacement of characters in subsequent lines.
545547
local IFS=";"; DARWIN_SDK_DEPLOYMENT_TARGETS=($DARWIN_SDK_DEPLOYMENT_TARGETS); unset IFS
546548

547549
for target in "${DARWIN_SDK_DEPLOYMENT_TARGETS[@]}"; do
550+
# IFS is immediately unset after its use to avoid unwanted
551+
# replacement of characters in subsequent lines.
548552
local IFS="-"; triple=($target); unset IFS
549553
sdk_target=$(toupper ${triple[0]}_${triple[1]})
550554
swift_cmake_options+=(

0 commit comments

Comments
 (0)