Skip to content

bootstrap: add an LC_RPATH relative to the executable #2548

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
Feb 5, 2020

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Feb 4, 2020

This adds the executable relative path to the runtime path selection to
ensure that we use local copies of the libraries to run executables.
Without this, the system libraries would be used which may not have
changes that the tool was built against.

This adds the executable relative path to the runtime path selection to
ensure that we use local copies of the libraries to run executables.
Without this, the system libraries would be used which may not have
changes that the tool was built against.
@compnerd compnerd requested a review from aciidgh as a code owner February 4, 2020 23:28
@compnerd
Copy link
Member Author

compnerd commented Feb 4, 2020

@swift-ci please test

@aciidgh
Copy link
Contributor

aciidgh commented Feb 5, 2020

Is this for tensor flow? The libs on system are supposed to be ABI stable so we shouldn't need to pick the latest ones.

@compnerd
Copy link
Member Author

compnerd commented Feb 5, 2020

Yes, TensorFlow definitely needs this. I think that in general though, this is desirable: if Im experimenting with changes to swiftCore, I should be able to use that version.

@aciidgh
Copy link
Contributor

aciidgh commented Feb 5, 2020

I think we can also support experimentation using other ways but this also seems fine.

@aciidgh
Copy link
Contributor

aciidgh commented Feb 5, 2020

@swift-ci smoke test

@compnerd
Copy link
Member Author

compnerd commented Feb 5, 2020

@swift-ci please smoke test

@compnerd compnerd merged commit a455dd4 into swiftlang:master Feb 5, 2020
@compnerd compnerd deleted the bootstrap-rpath branch February 5, 2020 16:15
dan-zheng added a commit to dan-zheng/swift-package-manager that referenced this pull request Feb 6, 2020
…arwin.

Add `@executable_path/../lib/swift/<platform>` RPATH on Darwin platforms.
This is necessary for experimental toolchains that include libraries not part of
the OS (e.g. `PythonKit` or `TensorFlow`).

Verified to fix SwiftPM command linker issues for Swift for TensorFlow
toolchains: tensorflow/swift#347.

Effectively reverts swiftlang#2548:
an unverified fix for the same issue that did not work.
dan-zheng added a commit to dan-zheng/swift-package-manager that referenced this pull request Feb 6, 2020
Add `@executable_path/../lib/swift/<platform>` RPATH on Darwin platforms.
This is necessary for experimental toolchains that include libraries not part of
the OS (e.g. `PythonKit` or `TensorFlow`).

Verified to fix SwiftPM command linker issues for Swift for TensorFlow
toolchains: tensorflow/swift#347.

Effectively reverts swiftlang#2548:
an unverified fix for the same issue that did not work.
dan-zheng added a commit to dan-zheng/swift-package-manager that referenced this pull request Feb 12, 2020
Add `@executable_path/../lib/swift/<platform>` RPATH on Darwin platforms.
This is necessary for experimental toolchains that include libraries not part of
the OS (e.g. `PythonKit` or `TensorFlow`).

Verified to fix SwiftPM command linker issues for Swift for TensorFlow
toolchains: tensorflow/swift#347.

Effectively reverts swiftlang#2548:
an unverified fix for the same issue that did not work.
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