Skip to content

Add support for Musl. #726

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2024
Merged

Add support for Musl. #726

merged 1 commit into from
Jan 20, 2024

Conversation

al45tair
Copy link
Contributor

Motivation

We would like to make this work for Musl so that we can build fully statically linked binaries that use AsyncHTTPClient.

Modifications

Define _GNU_SOURCE as a compiler argument; doing it in a source file doesn't work properly with modular headers.

Add imports of Musl in appropriate places.

Musl doesn't have strptime_l, so avoid using that.

Result

async-http-client will build for Musl.

@FranzBusch FranzBusch requested a review from dnadoba January 17, 2024 11:16
@FranzBusch
Copy link
Collaborator

@swift-server-bot test this please

@FranzBusch FranzBusch enabled auto-merge (squash) January 17, 2024 11:16
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jan 17, 2024
@FranzBusch
Copy link
Collaborator

@swift-server-bot test this please

1 similar comment
@dnadoba
Copy link
Collaborator

dnadoba commented Jan 18, 2024

@swift-server-bot test this please

Motivation:

We would like to make this work for Musl so that we can build fully
statically linked binaries that use AsyncHTTPClient.

Modifications:

Define `_GNU_SOURCE` as a compiler argument; doing it in a source file
doesn't work properly with modular headers.

Add imports of `Musl` in appropriate places.

`Musl` doesn't have `strptime_l`, so avoid using that.

Result:

async-http-client will build for Musl.
auto-merge was automatically disabled January 18, 2024 15:17

Head branch was pushed to by a user without write access

@al45tair
Copy link
Contributor Author

@swift-server-bot test this please

1 similar comment
@weissi
Copy link
Contributor

weissi commented Jan 18, 2024

@swift-server-bot test this please

@weissi
Copy link
Contributor

weissi commented Jan 18, 2024

@swift-server-bot add to allow list

@weissi weissi merged commit 09b7eb7 into swift-server:main Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants