Skip to content

[6.2][cherrypick] Use LLVM-default spellings for amd64 on OpenBSD. #81112

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 1 commit into from
Apr 26, 2025

Conversation

3405691582
Copy link
Member

  • Explanation:

OpenBSD spells the common 64-bit x86 architecture as amd64, while LLVM defaults it to x86_64. A while back we tried to stick with the amd64 spelling, but this was difficult to make the change properly and consistently. A while back we decided to just stick with LLVM spellings, but there are a few minor cases missing.

This change is necessary for properly finding swiftrt.o.

  • Scope:

Changes are conditioned on OpenBSD triples only.

  • Issues:

See also #78437 for the master issue tracking OpenBSD.

  • Original PRs:

#80919

  • Risk:

Risk is minimal, since this is scoped only to OpenBSD.

  • Testing:

CI has ran on the original prs. OpenBSD x86-targeted builds require this change.

  • Reviewers:

@DougGregor

OpenBSD spells the common 64-bit x86 architecture as amd64, while LLVM
defaults it to x86_64. A while back we tried to stick with the amd64
spelling, but this was difficult to make the change properly and
consistently. A while back we decided to just stick with LLVM spellings,
but there are a few minor cases missing.

This change is necessary for properly finding swiftrt.o.
@3405691582 3405691582 requested a review from a team as a code owner April 25, 2025 22:40
@3405691582
Copy link
Member Author

@swift-ci please test.

@tbkka
Copy link
Contributor

tbkka commented Apr 25, 2025

FreeBSD also uses the term amd64 -- I suspect other BSDs do as well.

@3405691582
Copy link
Member Author

3405691582 commented Apr 25, 2025

Yes, but perhaps that should be left to a separate change, since this is just an OpenBSD-specific cherrypick? I also can't readily test FreeBSD changes.

@tbkka
Copy link
Contributor

tbkka commented Apr 26, 2025

@swift-ci Please test

@tbkka tbkka enabled auto-merge April 26, 2025 00:16
@tbkka
Copy link
Contributor

tbkka commented Apr 26, 2025

@swift-ci Please smoke test

@tbkka tbkka merged commit 6d68479 into swiftlang:release/6.2 Apr 26, 2025
5 checks passed
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.

2 participants