Skip to content
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

Do not add rpath to swift-testing for CLT or custom toolchains #8295

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

bnbarham
Copy link
Contributor

This was added so that test binaries could find swift-testing, but we should insert those paths into DYLD_*_PATH rather than add to the rpath. The current behavior adds an absolute rpath to all binaries, not even just test binaries.

@bnbarham
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@dschaefer2 dschaefer2 left a comment

Choose a reason for hiding this comment

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

Oof, yes, adding this to the env makes sense. We'll have to keep an eye on this as we transition the build system to make sure it's doing what we need.

@bnbarham
Copy link
Contributor Author

@swift-ci please test macOS platform

This was added so that test binaries could find swift-testing, but we
should insert those paths into `DYLD_*_PATH` rather than add to the
rpath. The current behavior adds an absolute rpath to *all* binaries,
not even just test binaries.
@bnbarham
Copy link
Contributor Author

@swift-ci please test macOS platform

@bnbarham
Copy link
Contributor Author

@swift-ci please test Linux platform

@bnbarham
Copy link
Contributor Author

@swift-ci please test Windows platform

@bnbarham
Copy link
Contributor Author

@swift-ci please test Windows platform

@bnbarham bnbarham merged commit 8493d0b into swiftlang:main Feb 18, 2025
5 checks passed
@bnbarham bnbarham deleted the move-rpath branch February 18, 2025 20:44
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.

4 participants