dev-lang/swift: update LLVM_COMPAT

Updates LLVM_COMPAT to allow building Swift 6 with LLVM/Clang 22, and
reintroduces a `libcxx` USE flag to allow dropping a hard dependency on
GCC <16 on systems that don't want to use it.

Swift 5.10 does not build with Clang 22.

Signed-off-by: Itai Ferber <itai@itaiferber.net>
This commit is contained in:
Itai Ferber
2026-07-01 12:53:21 -04:00
parent 80fbc4c2ac
commit 0591ece77d
7 changed files with 227 additions and 42 deletions

View File

@@ -8,6 +8,11 @@
<upstream>
<remote-id type="github">swiftlang/swift</remote-id>
</upstream>
<use>
<flag name="libcxx">
Build against <pkg>llvm-runtimes/libcxx</pkg> as the default C++ runtime library over GCC's libdstc++.
</flag>
</use>
<slots>
<slot name="0">
The original slot for swift-5.10.1; should no longer be used.