Skip to content

Conversation

@hmelder
Copy link
Contributor

@hmelder hmelder commented Oct 20, 2025

libobjc2 now supports external blocks runtimes, including the one bundled in libdispatch. This works on Linux, but the NSConcrete* globals are not correctly exposed on Windows resulting in a linker error. @compnerd added initial support for this in 23ce6f6. I have added the remaining globals to this.

@rokhinip
Copy link
Contributor

@tbkka is working on moving the blocks runtime out of swift-corelibs-libdispatch to the new swift-corelibs-blocksruntime repo. I think we might want to hold off on this or move this change to the new repo.

@tbkka
Copy link

tbkka commented Oct 20, 2025

Yes, please file a PR against
https://github.com/swiftlang/swift-corelibs-blocksruntime

@rokhinip rokhinip requested a review from tbkka October 20, 2025 17:45
@tbkka
Copy link

tbkka commented Oct 20, 2025

@swift-ci Please test

@compnerd
Copy link
Member

I'm not sure that this is the right approach. I've fixed the code generation on clang to handle this properly. We should be able to undo the changes here.

@hmelder
Copy link
Contributor Author

hmelder commented Oct 24, 2025

@hmelder hmelder closed this Oct 24, 2025
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.

4 participants