Skip to content

Don't just import locale_h. #775

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
Sep 30, 2024
Merged

Don't just import locale_h. #775

merged 1 commit into from
Sep 30, 2024

Conversation

al45tair
Copy link
Contributor

On modularised platforms, #771 broke things because it changed from importing Musl or Glibc to importing just locale_h. The latter understandably doesn't define errno or EOVERFLOW, so we get a build failure.

Fixes #773.

On modularised platforms, swift-server#771 broke things because it changed from
importing `Musl` or `Glibc` to importing just `locale_h`.  The latter
understandably doesn't define `errno` or `EOVERFLOW`, so we get a
build failure.

Fixes swift-server#773.
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Sep 30, 2024
@Lukasa
Copy link
Collaborator

Lukasa commented Sep 30, 2024

@swift-server-bot add to allowlist

@Lukasa
Copy link
Collaborator

Lukasa commented Sep 30, 2024

Thanks @al45tair, much appreciated! ✨

@Lukasa Lukasa enabled auto-merge (squash) September 30, 2024 17:10
@Lukasa Lukasa merged commit 64abc77 into swift-server:main Sep 30, 2024
6 of 7 checks passed
#elseif canImport(Darwin)
#endif

#if canImport(Darwin)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it would be better to import the other base modules we need like errno_h. Darwin in particular is very heavyweight, and if we can avoid it that would be best.

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.

Build errors when building against a Static Linux SDK
3 participants