Skip to content

Conversation

mattt
Copy link
Contributor

@mattt mattt commented Apr 10, 2025

Follow up to #61

The Swift Static Linux SDK allows Swift code to be built as a fully statically linked executables. Notably, this allows a package to be usable in executables built for Alpine Linux, which uses musl instead of glibc.

The actual implementation (f3f4cfd) is, theoretically, straightforward — just another conditional compilation #canImport. The tricky part has been testing this in CI. Because Swift isn't currently supported on Alpine Linux, we need to build an executable with the Swift Static Linux SDK in a separate job. However, this approach fails because of an apparent lack of support for Swift Testing:

error: no such module 'Testing'

As a workaround, we can create an example binary executable and run that as a substitute for our test suite. But that's more than I want to bite off right now, so I'll convert this to draft for now.

@mattt mattt force-pushed the mattt/musl-linux branch 2 times, most recently from 9d10730 to 1a876ca Compare April 10, 2025 13:20
@mattt mattt marked this pull request as draft April 10, 2025 13:33
@mattt mattt changed the title Add support for Linux with Musl Add StdioTransport support for Linux with musl Apr 10, 2025
@mattt mattt added the help wanted Extra attention is needed label May 7, 2025
@mattt
Copy link
Contributor Author

mattt commented Aug 14, 2025

Superseded by #151

@mattt mattt closed this Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant