Skip to content

Conversation

@al45tair
Copy link
Contributor

We need a handful more autolink arguments; these were in a previous PR, but seem to have gone missing at some point during the re-core.

Additionally, Musl has the posix_spawn_file_actions_addchdir_np() function rather than the non-_np() version.

rdar://138023731

…nsChdir.

We need a handful more autolink arguments; these were in a previous PR,
but seem to have gone missing at some point during the re-core.

Additionally, Musl has the `posix_spawn_file_actions_addchdir_np()`
function rather than the non-`_np()` version.

Fixes swiftlang#5089.
@al45tair
Copy link
Contributor Author

@swift-ci Please test Linux platform

@al45tair
Copy link
Contributor Author

@swift-ci Please test Windows platform

@al45tair
Copy link
Contributor Author

Explanation: We need to add the autolink options in order for programs built with the Static SDK to work without having to add extra linker arguments. Also, Musl has the _np() version of posix_spawn_file_actions_addchdir, at least in the version we're using.
Risk: Low. We already have these changes on main, and they only affect the Static SDK for Linux.
Original PR: #5097
Reviewed by: @parkera @jmschonfeld
Resolves: rdar://138023731
Tests: The fixes here have been manually tested.

@al45tair al45tair requested a review from jmschonfeld October 17, 2024 10:34
@shahmishal shahmishal merged commit cf5b67f into swiftlang:release/6.0.2 Oct 18, 2024
2 checks passed
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