Skip to content

Commit 330299d

Browse files
committed
Unset IFS after its use in set_build_options_for_host
If IFS remains set, it may cause compilation errors due to unanticipated replacement of characters in some parameters. Addresses rdar://problem/57927748
1 parent bc62c14 commit 330299d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/build-script-impl

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

544544
if [[ "${DARWIN_SDK_DEPLOYMENT_TARGETS}" != "" ]]; then
545-
local IFS=";"; DARWIN_SDK_DEPLOYMENT_TARGETS=($DARWIN_SDK_DEPLOYMENT_TARGETS)
545+
local IFS=";"; DARWIN_SDK_DEPLOYMENT_TARGETS=($DARWIN_SDK_DEPLOYMENT_TARGETS); unset IFS
546546

547547
for target in "${DARWIN_SDK_DEPLOYMENT_TARGETS[@]}"; do
548-
local IFS="-"; triple=($target)
548+
local IFS="-"; triple=($target); unset IFS
549549
sdk_target=$(toupper ${triple[0]}_${triple[1]})
550550
swift_cmake_options+=(
551551
"-DSWIFTLIB_DEPLOYMENT_VERSION_${sdk_target}=${triple[2]}"

0 commit comments

Comments
 (0)