Skip to content

Set install dir correctly for libSwiftRemoteMirror #76664

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
Sep 24, 2024

Conversation

justice-adams-apple
Copy link
Contributor

@justice-adams-apple justice-adams-apple commented Sep 23, 2024

In This PR

  • Include libswiftRemoteMirror in shared cache by ensuring the split segment info load command is included in the library.

The linker only adds LC_SEGMENT_SPLIT_INFO if the install name of the library is in /usr/lib

Previously, SWIFTLIB_DARWIN_INSTALL_NAME_DIR was used incorrectly and not set, meaning the library would default install_name to @rpath/libswiftRemoteMirror.dylib

@justice-adams-apple
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.

Interesting, the SWIFTLIB_DARWIN_INSTALL_NAME_DIR variable never seems to get set anywhere. Leftover from bygone days?

@justice-adams-apple justice-adams-apple merged commit caad343 into main Sep 24, 2024
5 checks passed
@justice-adams-apple justice-adams-apple deleted the install-remote-mirror-in-shared-cache branch September 24, 2024 15:26
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