Skip to content

Install swiftmodules with full module triple #470

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 2 commits into from
May 14, 2025

Conversation

etcwilde
Copy link
Member

This cleans up how the CMake build of Swift-Collections installs swiftmodules to use the swift module triple expected by the compiler for a given target triple instead of trying to recreate the correct architecture name in CMake. The existing computation is incorrect for modules building for x86_64 FreeBSD machines, causing swift-foundation to fail to build. Letting the compiler specify what it expects the module triple to be for a given target triple will be more robust.

resolves: swiftlang/swift-foundation#1230

etcwilde added 2 commits May 12, 2025 20:33
CMP0091 was added in CMake 3.15. The minimum version is CMake 3.16 so
we don't need to do the check anymore.
Install swiftmodules with the full module triple expected by the
compiler instead of attempting to compute the correct architecture name
in CMake.
@etcwilde etcwilde requested a review from lorentey as a code owner May 13, 2025 03:36
@etcwilde
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

This looks great, thanks for fixing this!

@lorentey lorentey added this to the 1.2.0 milestone May 14, 2025
@etcwilde etcwilde merged commit 302b122 into apple:main May 14, 2025
23 checks passed
@etcwilde etcwilde deleted the ewilde/install-module-triples branch May 14, 2025 23:51
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.

_FoundationCollection is installed with an improper name
3 participants