Skip to content

Commit a6dbb7f

Browse files
z2ohcompnerd
authored andcommitted
Use toolchain clang to build compilers
Clang 18 is the default version of Clang on Github runner images, and has a broken definition of the __prefetch intrinsic on arm64 which causes build failures. We can instead use the Clang that comes with the pinned toolchain (Clang 16 on Swift 5.x releases), which does not have this broken definition.
1 parent 46bd1b9 commit a6dbb7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/swift-toolchain.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,8 @@ jobs:
726726
}
727727
$SWIFTC = cygpath -m (Get-Command swiftc).Source
728728
$SDKROOT = cygpath -m ${env:SDKROOT}
729-
$CLANG_LOCATION = cygpath -m (Split-Path (Get-Command clang-cl).Source)
729+
# Use toolchain clang to avoid broken __prefetch intrinsic on arm64 in Clang 18.
730+
$CLANG_LOCATION = cygpath -m (Split-Path (Get-Command swiftc).Source)
730731
Remove-Item env:\SDKROOT
731732
cmake -B ${{ github.workspace }}/BinaryCache/1 `
732733
-C ${{ github.workspace }}/SourceCache/swift/cmake/caches/${CACHE} `

0 commit comments

Comments
 (0)