Skip to content

[CMake][SourceKit] Add RPATH to 'lib/swift/host' #68219

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
Aug 31, 2023

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Aug 30, 2023

RPATH to 'lib/swift/host' was missing in Darwin platform.

Failure caused by #68082.
Before #68082 in macOS environment, sourcekitd-test had RPATH to lib/swift/host, but sourcekitdInProc didn't. It worked because .dylib inherits executable's RPATH. #68082 changed so sourcekit-test doesn't have RPATH to swiftCore and lib/swift/host because that executable itself didn't depend on it. But since sourcekitdInProc didn't have correct RPATH, it failed. Solution here is that sourcekitdInProc have the correct RPATH.

rdar://114700107

RPATH to 'lib/swift/host' was missing in Darwin platform.
@rintaro
Copy link
Member Author

rintaro commented Aug 30, 2023

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Aug 30, 2023

preset=asan
@swift-ci Please test with preset macOS platform

@rintaro
Copy link
Member Author

rintaro commented Aug 31, 2023

ASAN failure is unrelated.

@rintaro rintaro merged commit 6ddb1cb into swiftlang:main Aug 31, 2023
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