Skip to content

Commit f1503d0

Browse files
Steelskincompnerd
authored andcommitted
early-swift-driver: Update bootstrap toolchain
For now, this is used to remove the workaround to downgrade the MSVC build tools version. Once the Windows static build is ready, we will also need this mechanism to use a more recent toolchain to build the early swift-driver statically.
1 parent 62332ad commit f1503d0

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/swift-toolchain.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ env:
284284
WORKAROUND_WINDOWS_PINNED_BOOTSTRAP_TOOLCHAIN_REPO: thebrowsercompany/swift-build
285285
WORKAROUND_WINDOWS_PINNED_BOOTSTRAP_TOOLCHAIN_VERSION: 6.0.0-20241216.0
286286

287+
# Workaround to build the early swift-driver without the workaround for the MSVC version.
288+
WORKAROUND_WINDOWS_EARLY_SWIFT_DRIVER_TOOLCHAIN_REPO: thebrowsercompany/swift-build
289+
WORKAROUND_WINDOWS_EARLY_SWIFT_DRIVER_TOOLCHAIN_VERSION: 6.2.0-20250630.0
290+
287291
# Workaround for issues with building with MSVC 14.43.
288292
# See https://github.com/swiftlang/swift/issues/79852 for details.
289293
# TODO: Remove this once the bootstrap toolchain is updated to 6.1.
@@ -782,10 +786,9 @@ jobs:
782786
- uses: ./SourceCache/ci-build/.github/actions/setup-build
783787
id: setup-build
784788
with:
785-
msvc-version: ${{ env.WORKAROUND_BOOTSTRAP_WINDOWS_MSVC_VERSION }}
786789
host-arch: ${{ matrix.arch }}
787-
swift-version: ${{ inputs.build_os == 'Windows' && env.WORKAROUND_WINDOWS_PINNED_BOOTSTRAP_TOOLCHAIN_VERSION || env.PINNED_BOOTSTRAP_TOOLCHAIN_VERSION }}
788-
swift-repo: ${{ inputs.build_os == 'Windows' && env.WORKAROUND_WINDOWS_PINNED_BOOTSTRAP_TOOLCHAIN_REPO || '' }}
790+
swift-version: ${{ inputs.build_os == 'Windows' && env.WORKAROUND_WINDOWS_EARLY_SWIFT_DRIVER_TOOLCHAIN_VERSION || env.PINNED_BOOTSTRAP_TOOLCHAIN_VERSION }}
791+
swift-repo: ${{ inputs.build_os == 'Windows' && env.WORKAROUND_WINDOWS_EARLY_SWIFT_DRIVER_TOOLCHAIN_REPO || '' }}
789792

790793
- uses: actions/[email protected]
791794
with:
@@ -821,14 +824,8 @@ jobs:
821824
- name: Build early swift-driver
822825
run: |
823826
$env:SWIFTCI_USE_LOCAL_DEPS=1
824-
$BuildToolsVersion = "${{ steps.setup-build.outputs.windows-build-tools-version }}"
825-
$ExtraFlags = if ($BuildToolsVersion -ne "") {
826-
@("-Xlinker", "${env:SDKROOT}/usr/lib/swift/windows/${{ matrix.cpu }}/swiftCore.lib",
827-
"-Xswiftc", "-visualc-tools-version", "-Xswiftc", "${BuildToolsVersion}",
828-
"-Xbuild-tools-swiftc", "-visualc-tools-version", "-Xbuild-tools-swiftc", "${BuildToolsVersion}",
829-
"-Xcc", "-Xmicrosoft-visualc-tools-version", "-Xcc", "${BuildToolsVersion}",
830-
"-Xcxx", "-Xmicrosoft-visualc-tools-version", "-Xcxx", "${BuildToolsVersion}"
831-
)
827+
$ExtraFlags = if ("${{ matrix.os }}" -eq "Windows") {
828+
@("-Xlinker", "${env:SDKROOT}/usr/lib/swift/windows/${{ matrix.cpu }}/swiftCore.lib")
832829
} else {
833830
@()
834831
}

0 commit comments

Comments
 (0)