Skip to content

Commit 71b0ea6

Browse files
authored
Merge pull request #63924 from apple/add-support-for-multiple-toolchain-alias
Add support to include multiple toolchain aliases
2 parents cc0b668 + 4d3eebe commit 71b0ea6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

utils/build-script-impl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3505,7 +3505,16 @@ function build_and_test_installable_package() {
35053505
call ${PLISTBUDDY_BIN} -c "Add CFBundleIdentifier string '${DARWIN_TOOLCHAIN_BUNDLE_IDENTIFIER}'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
35063506
call ${PLISTBUDDY_BIN} -c "Add ReportProblemURL string '${DARWIN_TOOLCHAIN_REPORT_URL}'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
35073507
call ${PLISTBUDDY_BIN} -c "Add Aliases array" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
3508-
call ${PLISTBUDDY_BIN} -c "Add Aliases:0 string '${DARWIN_TOOLCHAIN_ALIAS}'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
3508+
3509+
aliases_count=0
3510+
local IFS=","
3511+
for alias_name in ${DARWIN_TOOLCHAIN_ALIAS}
3512+
do
3513+
call ${PLISTBUDDY_BIN} -c "Add Aliases:${aliases_count} string '${alias_name}'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
3514+
aliases_count=$[$aliases_count +1]
3515+
done
3516+
unset IFS
3517+
35093518
call ${PLISTBUDDY_BIN} -c "Add OverrideBuildSettings dict" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
35103519
call ${PLISTBUDDY_BIN} -c "Add OverrideBuildSettings:ENABLE_BITCODE string 'NO'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
35113520
call ${PLISTBUDDY_BIN} -c "Add OverrideBuildSettings:SWIFT_DISABLE_REQUIRED_ARCLITE string 'YES'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"

0 commit comments

Comments
 (0)