Skip to content

Commit 4902aa8

Browse files
committed
Add support to include multiple toolchain alias
1 parent 43510bc commit 4902aa8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

utils/build-script-impl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3505,7 +3505,15 @@ 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+
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+
35093517
call ${PLISTBUDDY_BIN} -c "Add OverrideBuildSettings dict" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
35103518
call ${PLISTBUDDY_BIN} -c "Add OverrideBuildSettings:ENABLE_BITCODE string 'NO'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
35113519
call ${PLISTBUDDY_BIN} -c "Add OverrideBuildSettings:SWIFT_DISABLE_REQUIRED_ARCLITE string 'YES'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"

0 commit comments

Comments
 (0)