Skip to content
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

CoreFoundation: adjust declaration of private SPI #5181

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Mar 2, 2025

The SPI declaration for libdispatch_init was not attribtued properly. The result of this omission was an improper reference to the function on Windows when disaptch is not linked statically. Correct the declaration by re-using the DISPATCH_EXPORT macro to decorate the declaration with the appropriate DLLStorage as necessary.

This was caught by running the Foundation tests with SPM with a refactoring of the toolchain layout during the build.

The SPI declaration for `libdispatch_init` was not attribtued properly.
The result of this omission was an improper reference to the function on
Windows when disaptch is _not_ linked statically. Correct the
declaration by re-using the `DISPATCH_EXPORT` macro to decorate the
declaration with the appropriate DLLStorage as necessary.

This was caught by running the Foundation tests with SPM with a
refactoring of the toolchain layout during the build.
@compnerd
Copy link
Member Author

compnerd commented Mar 2, 2025

CC: @drexin @jmschonfeld

This gets us one step closer to fixing the test suites on Windows.

@compnerd
Copy link
Member Author

compnerd commented Mar 2, 2025

@swift-ci please test

@compnerd compnerd merged commit 853b681 into swiftlang:main Mar 3, 2025
2 checks passed
@compnerd compnerd deleted the dispatch branch March 3, 2025 17:21
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.

1 participant