Skip to content

Generate the compatibility header for libraries on all platforms #8695

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

xymus
Copy link
Contributor

@xymus xymus commented May 19, 2025

Enable generating the compatibility header for library targets on all platforms by lifting the restriction on Darwin.

As part of the work to formalize @cdecl we've been adding content to the compatibility header that is usable by C compilers without the need for Objective-C or modules. Lifting this restriction will allow Linux and Windows users to generate and import the compatibility header to call @cdecl functions in their package.

Enable generating the compatibility header for library targets on all
platforms by lifting the restriction on Darwin.

As part of the work to formalize `@cdecl` we've been adding content to
the compatibility header that is usable by C compilers without the need
for Objective-C or modules. Lifting this restriction will allow Linux
and Windows users to generate and import the compatibility header in
their packages.
@xymus
Copy link
Contributor Author

xymus commented May 19, 2025

@swift-ci Please test

@nkcsgexi
Copy link

Woohoo!

@nkcsgexi nkcsgexi requested a review from DougGregor May 19, 2025 20:58
Now that compatibility header tests run on Windows we need to update how
we check for paths to support the platform properly.
@xymus
Copy link
Contributor Author

xymus commented May 19, 2025

@swift-ci Please test

@xymus
Copy link
Contributor Author

xymus commented May 20, 2025

@swift-ci test windows

@jakepetroules
Copy link
Contributor

Took a quick look at Swift Build and I think we don't need any changes there; I see in my Android builds that the -Swift.h file is already being generated.

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