Skip to content

Conversation

@bnbarham
Copy link
Contributor

Our libraries have a LC_LINKER_OPTION for eg. -lswiftLLVMJSON. This is resolved (probably just based on the actual libswiftLLVMJSON.a added to the link command) by ld, but not by lld. Add in a link directory so that these libraries can be found.

Our libraries have a `LC_LINKER_OPTION` for eg. `-lswiftLLVMJSON`.
This is resolved (probably just based on the actual libswiftLLVMJSON.a
added to the link command) by ld, but not by lld. Add in a link
directory so that these libraries can be found.
@bnbarham
Copy link
Contributor Author

@etcwilde / @compnerd I didn't really dig into this very much. Is there a way to just disable autolinking 🤔? Not really sure if this is the right fix, happy for opinions here.

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

This is fine as a workaround. We should introduce a flag to disable auto-linking :/.

@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham merged commit e137b32 into swiftlang:main Mar 16, 2023
@bnbarham bnbarham deleted the add-link-path branch March 16, 2023 21:42
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