Skip to content

[Data] Fix build issue with Static SDK for Linux. #1293

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
May 16, 2025

Conversation

al45tair
Copy link
Contributor

Musl's definition of S_IFMT gets imported by the Swift importer, which means Swift can see S_IFMT as a CInt and also S_IFMT from the Swift overlay as a mode_t. The upshot is that attempting to convert it to mode_t produces an ambiguity error, as Swift doesn't know which definition to use.

@al45tair
Copy link
Contributor Author

@swift-ci Please test

Musl's definition of `S_IFMT` gets imported by the Swift importer, which
means Swift can see `S_IFMT` as a `CInt` and also `S_IFMT` from the Swift
overlay as a `mode_t`.  The upshot is that attempting to convert it to
`mode_t` produces an ambiguity error, as Swift doesn't know which
definition to use.

rdar://147201087
@al45tair al45tair force-pushed the fix-static-sdk-build branch from aa17422 to ea9df5d Compare May 16, 2025 12:30
@al45tair
Copy link
Contributor Author

@swift-ci Please test

@parkera parkera merged commit 6116cdf into swiftlang:main May 16, 2025
15 checks passed
@parkera
Copy link
Contributor

parkera commented May 16, 2025

Perfect, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants