Skip to content

Conversation

@compnerd
Copy link
Member

The posix_spawn API is not annotated appropriately for nullability. Adjust the signature to allow proper usage with older NDKs.

@compnerd
Copy link
Member Author

@swift-ci please smoke test

@grynspan
Copy link
Contributor

Looks good (as discussed). Please update posix_spawn_file_actions_init() too as we discussed offline. Thanks!

@finagolfin @marcprux FYI.

@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please build toolchain Windows platform

The `posix_spawn` API is not annotated appropriately for nullability.
Adjust the signature to allow proper usage with older NDKs.
Adjust the API annotations to get this imported into Swift properly. The
outer pointer may be `nullptr`, but the inner pointer may not.
@compnerd
Copy link
Member Author

@swift-ci please build toolchain Windows platform

@compnerd
Copy link
Member Author

@swift-ci please smoke test

@compnerd
Copy link
Member Author

@swift-ci please smoke test macOS platform

@compnerd
Copy link
Member Author

@swift-ci please smoke test Windows platform

@finagolfin
Copy link
Member

I don't think we should support older NDKs that didn't have these annotations, but as long as this won't break anything in the current LTS NDK 27, don't see a problem with it.

@compnerd
Copy link
Member Author

compnerd commented Oct 31, 2025

@finagolfin this is fixing things in r27d as well. I don't think that we should be supporting the non-LTS NDKs as we don't have enough engineering resources to ensure that everything works that broadly.

@compnerd compnerd merged commit e50f3db into swiftlang:main Oct 31, 2025
4 checks passed
@compnerd compnerd deleted the spawn branch October 31, 2025 15:40
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