Skip to content

[Immediate] Workaround for loading merged frameworks in immediate mode #66521

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

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

benlangmuir
Copy link
Contributor

Some frameworks that previously had a separate swift overlay have been merged in macOS 14. This is causing symbols to not resolve if using the new SDK but running on an older OS in immediate mode. Ideally we would handle this automatically in JITLink as is done by the system linker, but in the meantime add a workaround to load the correct libraries manually.

rdar://110371405


I tested this manually on a macOS 13 host using a 14 beta SDK; for each framework I found a symbol that migrated and ensured it did not cause JIT errors after this change. If there's a reasonable way to test this in the lit suite, let me know, but I didn't come up with one.

Some frameworks that previously had a separate swift overlay have been
merged in macOS 14. This is causing symbols to not resolve if using the
new SDK but running on an older OS in immediate mode. Ideally we would
handle this automatically in JITLink as is done by the system linker,
but in the meantime add a workaround to load the correct libraries
manually.

rdar://110371405
@benlangmuir benlangmuir requested review from lhames, mikeash and drexin June 9, 2023 23:51
@benlangmuir
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@mikeash mikeash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I can’t think of a good automated test either.

@benlangmuir benlangmuir merged commit 544db5f into swiftlang:main Jun 12, 2023
@benlangmuir benlangmuir deleted the immediate-sadness branch June 12, 2023 16:12
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.

2 participants