Skip to content

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

Merged
parkera merged 1 commit intoswiftlang:mainfrom
al45tair:fix-static-sdk-build
May 16, 2025
Merged

[Data] Fix build issue with Static SDK for Linux.#1293
parkera merged 1 commit intoswiftlang:mainfrom
al45tair:fix-static-sdk-build

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