Skip to content

[6.3][cherrypick] Fix module names on OpenBSD for amd64/x86_64.#89302

Merged
DougGregor merged 1 commit into
swiftlang:release/6.3from
3405691582:unversion2_63
Jun 6, 2026
Merged

[6.3][cherrypick] Fix module names on OpenBSD for amd64/x86_64.#89302
DougGregor merged 1 commit into
swiftlang:release/6.3from
3405691582:unversion2_63

Conversation

@3405691582

Copy link
Copy Markdown
Member
  • Explanation:

Module names on OpenBSD must be transposed to the x86_64 spelling.

  • Scope:

Minor. Affects OpenBSD only.

  • Issues:

Of relevance to the OpenBSD port in #78437

  • Original PRs:

#88353

  • Risk:

Minor. Light refactoring change.

  • Testing:

Local testing, passed CI.

  • Reviewers:

@DougGregor

In swiftlang#88224 we moved to unversioned triples. However in using the existing
getUnversionedTriple implementation, we lost the call to
getMajorArchitectureName and just used getArchName on the triple.

On OpenBSD, the spelling is amd64. We make a number of transpositions to
use the LLVM spelling x86_64 in a number of places, but the target
triple by default uses amd64. This means that instead of having a
mismatch between versioned and unversioned triple, we have a mismatch
between architecture spellings.

Here, we call getMajorArchitectureName on OpenBSD to use the LLVM
architecture spellings in getUnversionedTriple for the platform. This is
only a problem for amd64/x86_64; there is no problem on aarch64,
which is why this wasn't spotted earlier.
@3405691582 3405691582 requested a review from a team as a code owner May 20, 2026 21:10
@3405691582 3405691582 added the OpenBSD Platform: OpenBSD label May 26, 2026
@3405691582

Copy link
Copy Markdown
Member Author

@swift-ci please test.

@DougGregor

Copy link
Copy Markdown
Member

@swift-ci please test Apple Silicon

@DougGregor

Copy link
Copy Markdown
Member

@swift-ci please test macOS arm64

@DougGregor DougGregor enabled auto-merge June 6, 2026 19:11
@DougGregor DougGregor merged commit c83acbf into swiftlang:release/6.3 Jun 6, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OpenBSD Platform: OpenBSD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants