Skip to content

[5.1][Interpreter] Fall back to loading Swift dylibs from /usr/lib/swift on Apple platforms. #24839

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

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented May 16, 2019

Cherry-pick #24838 to 5.1. This also reverts #23983, which was a temporary change superseded this one.

Requires LLDB PR apple/swift-lldb#1597.

Continue to load the dylibs next to the compiler if they exist. If they don't, then use the OS's dylibs.

rdar://problem/47528005

@mikeash
Copy link
Contributor Author

mikeash commented May 16, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - cd2867250c93779941cca5688e5cf0e1cda60f1a

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - cd2867250c93779941cca5688e5cf0e1cda60f1a

@mikeash
Copy link
Contributor Author

mikeash commented May 17, 2019

apple/swift-lldb#1597

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - cd2867250c93779941cca5688e5cf0e1cda60f1a

@rintaro
Copy link
Member

rintaro commented May 17, 2019

CI issue has been fixed.
@swift-ci Please test OS X platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - cd2867250c93779941cca5688e5cf0e1cda60f1a

@mikeash
Copy link
Contributor Author

mikeash commented May 20, 2019

apple/swift-lldb#1597

@swift-ci please test os x platform

@mikeash mikeash force-pushed the usrlibswift-fallback-5.1 branch from cd28672 to 8e1905d Compare June 19, 2019 19:39
@mikeash
Copy link
Contributor Author

mikeash commented Jun 19, 2019

apple/swift-lldb#1597

@swift-ci please test

mikeash added 6 commits June 27, 2019 16:30
…b/swift first for Swift libraries."

This reverts commit 81afe14.
…ing of the DYLD_LIBRARY_PATH value in constructInvocation."

This reverts commit acf2c9f.
…ing Swift dylibs from /usr/lib/swift."

This reverts commit 14c722b.
…n Apple platforms.

Continue to load the dylibs next to the compiler if they exist. If they don't, then use the OS's dylibs.

rdar://problem/47528005
@mikeash mikeash force-pushed the usrlibswift-fallback-5.1 branch from 8e1905d to bbdafde Compare June 27, 2019 20:31
@mikeash
Copy link
Contributor Author

mikeash commented Jun 27, 2019

apple/swift-lldb#1597

@swift-ci please test

@mikeash mikeash marked this pull request as ready for review June 27, 2019 20:41
- Check the target triple at runtime to decide whether to use the fallback.
- Change isInResourceDir to actually check the resource dir.
- Use ArrayRef<std::string> instead of std::vector<std::string>.
@mikeash
Copy link
Contributor Author

mikeash commented Jun 28, 2019

apple/swift-lldb#1597

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - bbdafde

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - bbdafde

@mikeash mikeash merged commit d580ce0 into swiftlang:swift-5.1-branch Jul 2, 2019
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