-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[bootstrap] Add rpath for macOS. #2692
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
Conversation
Add an extra rpath for macOS: `@executable_path/../../../lib/swift/macosx`. This rpath is necessary for swiftpm-xctest-helper, which is invoked by `swift test --filter`. Resolves SR-12599 and SR-12600.
@compnerd: could you please help review? |
@swift-ci Please test |
@swift-ci Please smoke test |
Thanks for the fix! It looks as if this extra rpath is being added to the link of all of the tools. Would it make sense to add that rpath to just I've been looking into something similar for replacing the use of Something like:
|
Thanks for the idea! That definitely seems preferable, if it works. |
I believe this can be closed now since #2785 superseded it. |
@dan-zheng @neonichu @abertelrud I know this is an old dead and gone thread, but it looks like this issue's still lurking somewhere. I've got the following on my plate right now:
but of-course, the same happens with the new'n'tasty Swift 5.5 Aug 30 snapshot, and a few older versions like 5.3 When I run
And poor
I've been chasing this issue for more than a week now, and I started to lose my nice long hair 😢 Can anyone give me some hope, please? |
Do you have Xcode installed? The toolchain on macOS does not contain XCTest and requires an Xcode installation for anything involving it. |
@neonichu Yup, I do. |
And of-course |
Add an extra rpath for macOS:
@executable_path/../../../lib/swift/macosx
.This rpath is necessary for swiftpm-xctest-helper, which is invoked by
swift test --filter
.I believe this resolves SR-12599 and SR-12600:
I'm verifying the fix via
build-toolchain
now.I believe this SwiftPM regression occurred in #2462, which revamped the
bootstrap
script.Related issue: tensorflow/swift#347