DNM: On ELF platforms, look for the runtime libraries in an architecture-specific directory.#6179
DNM: On ELF platforms, look for the runtime libraries in an architecture-specific directory.#6179finagolfin wants to merge 1 commit intoswiftlang:mainfrom
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 |
compnerd
left a comment
There was a problem hiding this comment.
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.