[6.3] Enable BPF target in LLVM backend by default #86047
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
maintorelease/6.3Adding the BPF target to the LLVM backend, allows eBPF programs to be built using the clang that ships with the OSS toolchains.
Should be a low-risk change, which I've tested locally by explicitly specifying the
--llvm-targets-to-buildflag:Looks like a negligible increase in build time vs previous PR toolchain builds:
And an increased of size comparison of PR toolchain(s) vs last nightly main, it
looks like it's gone up a bit, but not by this PR:
stat -c %sFootnotes
https://ci.swift.org/job/swift-PR-toolchain-Linux/1584/consoleText ↩
https://ci.swift.org/job/swift-PR-toolchain-Linux/1583/consoleText ↩
https://ci.swift.org/job/swift-PR-toolchain-Linux/1578/consoleText ↩
https://ci.swift.org/job/swift-PR-toolchain-Linux/1577/consoleText ↩
https://ci.swift.org/job/swift-PR-toolchain-Linux/1576/consoleText ↩
https://download.swift.org/development/ubuntu2004/swift-DEVELOPMENT-SNAPSHOT-2025-08-27-a/swift-DEVELOPMENT-SNAPSHOT-2025-08-27-a-ubuntu20.04.tar.gz ↩
https://download.swift.org/tmp/pull-request/85630/1584/ubuntu2204/PR-ubuntu2204.tar.gz ↩
https://download.swift.org/tmp/pull-request/85358/1583/ubuntu2204/PR-ubuntu2204.tar.gz ↩
https://download.swift.org/tmp/pull-request/79684/1578/ubuntu2204/PR-ubuntu2204.tar.gz ↩