thebrowsercompany / swift-build

Swift toolchain builds by The Browser Company
351 stars 10 forks source link

Cherry pick commit a6dbb7f: Use toolchain clang to build compilers #176

Closed kendalharland closed 1 month ago

kendalharland commented 1 month ago

Original commit message:

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.

This should fix the broken arm64 compilers step on the release/5.10 branch.

Test

https://github.com/thebrowsercompany/swift-build/actions/runs/9914436453

compnerd commented 1 month ago

This could also probably go upstream.

kendalharland commented 1 month ago

Ah, I didn't think to check if compnerd/swift-build had the original release/5.10 branch. I just sent https://github.com/compnerd/swift-build/pull/761 which contains this PR and the previous one I merged to install the older VS build tools.