Skip to content

Commit ecfc3e2

Browse files
committed
Merge pull request #2265 from shahmishal/master
Set toolchain CompatibilityVersion
2 parents d5b30ee + 3f83d6b commit ecfc3e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/build-script-impl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,11 +2561,13 @@ if [[ "${INSTALLABLE_PACKAGE}" ]] ; then
25612561
DARWIN_TOOLCHAIN_INSTALL_LOCATION="/Library/Developer/Toolchains/${DARWIN_TOOLCHAIN_NAME}.xctoolchain"
25622562
DARWIN_TOOLCHAIN_INFO_PLIST="${INSTALL_DESTDIR}/${TOOLCHAIN_PREFIX}/Info.plist"
25632563
DARWIN_TOOLCHAIN_REPORT_URL="https://bugs.swift.org/"
2564+
COMPATIBILITY_VERSION=2
25642565

25652566
echo "-- Removing: ${DARWIN_TOOLCHAIN_INFO_PLIST}"
25662567
rm -f ${DARWIN_TOOLCHAIN_INFO_PLIST}
25672568

25682569
${PLISTBUDDY_BIN} -c "Add DisplayName string '${DARWIN_TOOLCHAIN_DISPLAY_NAME}'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
2570+
${PLISTBUDDY_BIN} -c "Add CompatibilityVersion integer ${COMPATIBILITY_VERSION}" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
25692571
${PLISTBUDDY_BIN} -c "Add Version string '${DARWIN_TOOLCHAIN_VERSION}'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
25702572
${PLISTBUDDY_BIN} -c "Add CFBundleIdentifier string '${DARWIN_TOOLCHAIN_BUNDLE_IDENTIFIER}'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"
25712573
${PLISTBUDDY_BIN} -c "Add ReportProblemURL string '${DARWIN_TOOLCHAIN_REPORT_URL}'" "${DARWIN_TOOLCHAIN_INFO_PLIST}"

0 commit comments

Comments
 (0)