Add Swift toolchain (6.2.0)#177
Conversation
|
Still waiting for local test |
a4f1eea to
14fdceb
Compare
This is now using clang-17, shipped with the Swift SDK. Waiting :-) |
|
More work todo for WPE: |
|
To reproduce: |
| SWIFTLY_TOOLCHAINS_DIR="/opt/swift/toolchains" \ | ||
| PATH="/opt/swift/bin:${PATH}" | ||
|
|
||
| RUN ${CURL_DOWNLOAD} --remote-name https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \ |
There was a problem hiding this comment.
swift doesn't provide builds for arm32 neither official support.
# wget https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz
--2025-10-31 16:05:22-- https://download.swift.org/swiftly/linux/swiftly-armv8l.tar.gz
[...]
HTTP request sent, awaiting response... 404 Not Found
2025-10-31 16:05:23 ERROR 404: Not Found.
But fortunately seems there is community effort to support it.
Check this fork https://github.com/swift-embedded-linux/armhf-debian
it provides binaries ready to use for debian and ubuntu at https://github.com/swift-embedded-linux/armhf-debian/releases (click on show all assets)
This was found via: https://medium.com/@jesselzamora/running-swift-on-32-bit-raspberry-pis-b3307ce713ba
There was a problem hiding this comment.
This is just the start - at the moment we cannot even compile WebKit on amd64 🤣 good that you found the arm32 stuff
|
I got the demo working in GTK MB here, on a f43 container (with swift from Fedora, version 6.2) on an x86-64 host. I had to patch the shell wrapper: and then, |
|
I hit another failure: A workaround, certainly not right, was just to add |
|
I took a different approach to installing swift here: https://github.com/Igalia/webkit-container-sdk/tree/pgriffis/swift Instead of using To actually use it then you have to add I believe the only supported way of using this is by using the bundled clang-17. |
Hi, this is fixed with this patch, we should try to have it merged: WebKit/WebKit#56906 For the shell wrapper problem that @philn mentioned I suggested this patch: https://bugs.webkit.org/show_bug.cgi?id=305785#c9 Again, if someone can help me get it accepted I'd appreciate it. With those two I'm able to make a Swift-enabled build of WebKitGTK. |
|
Regarding the Swift compiler, for my tests I was using the one available in Debian / Ubuntu (6.1.3-4 as of this writing). |
|
@bertogg any suggestions here, how to proceed? |
|
As things are now in the I was testing the If that's not an option then using the official releases from Apple should be fine, I actually suspect that the distro packages of Swift will be out of date at some point, my understanding is that, at least initially, Apple plans to use always the most recent stable release. |
No description provided.