Skip to content

Conversation

@finagolfin
Copy link
Member

This is needed for swiftlang/swift#63782, which changes the Unix toolchain to look for libraries in architecture-specific directories.

get_swift_host_arch() was copied over from the libdispatch CMake config and slightly updated and condensed.

@finagolfin
Copy link
Member Author

@etcwilde, now that this passed the CI on the linked compiler pull, looking for review so I can get this in before the upcoming 5.9 branch. Please don't merge though, as all 11 pulls will have to be merged together.

Copy link
Member

Choose a reason for hiding this comment

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

Why replicate this rather than from SwiftSupport.cmake ?

Copy link
Member

Choose a reason for hiding this comment

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

LLBUILD doesn't have a SwiftSupport.cmake yet, but we should probably pull that from somewhere.
@compnerd is there a canonical version somewhere? The one in swift-system is a few lines longer from a quick glance, so probably handles more architectures; https://github.com/apple/swift-system/blob/main/cmake/modules/SwiftSupport.cmake.

Copy link
Member Author

Choose a reason for hiding this comment

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

The one in swift-system is a few lines longer from a quick glance, so probably handles more architectures;

I just checked and the only difference is that that one doesn't handle wasm32, whereas this one is missing the all-caps ARM64. Not particularly important, can always add it later if wanted, as I'd like to get this in with the other pulls before the 5.9 branch.

…directory on ELF platforms

This is needed for swiftlang/swift#63782, which changes the Unix toolchain to look
for libraries in architecture-specific directories.
@finagolfin
Copy link
Member Author

Updated this pull to account for my just-merged #870.

@finagolfin
Copy link
Member Author

@finagolfin finagolfin closed this Apr 12, 2023
@finagolfin finagolfin deleted the arch branch April 13, 2023 08:16
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.

3 participants