-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
DNM: On ELF platforms, look for the runtime libraries in an architecture-specific directory. #6179
Conversation
…pecific directory. This is needed for swiftlang/swift#63782, which changes the Unix toolchain to look for libraries in architecture-specific directories.
@swift-ci smoke test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable to me (other than Utilities/bootstrap
which I didn't look at). Not approving to give others a chance to look at it as well.
Could we use this as an opportunity to encode more triple components in that path, such as ABI/environment, which would help with Musl support, or this is meant to be a purely incremental change? |
@MaxDesiatov, we could do it together, what scheme do you have in mind? Alternatively, if we simply name the platform |
I already tried that route and it doesn't seem to be practical. There is enough code in the build system that identifies Musl-based distros as plain |
Well, we will have to change the build system either way, but it would be easier to make these changes you list here than move the Swift resource directory to a whole new triple-based naming scheme.
As in we move to a whole new scheme like I think you raise an important point that Swift should start supporting alternate C libraries and ABIs, particularly for linux, but the question is how best to do so. |
@MaxDesiatov @buttaface is this still pending, or the discussion impact this PR? |
@tomerd, this is under active testing with the linked compiler pull swiftlang/swift#63782 still: once it passes the CI, I will ask for all 8 pulls to be merged simultaneously. |
Alright, the CI passed and the Swift compiler pull was approved, the draft/WIP tags can be removed, @tomerd. Please don't merge yet though, as all 11 pulls should be merged together. |
Closing since the Swift devs want to take a different approach. |
This is needed for swiftlang/swift#63782, which changes the Unix toolchain to look for libraries in architecture-specific directories.