Skip to content

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
@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.

4 participants