Skip to content
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

Fix x86_64-unknown-illumos LLVM target triple #138429

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madsmtm
Copy link
Contributor

@madsmtm madsmtm commented Mar 12, 2025

We were passing "pc" as the vendor component, which isn't present in the rustc triple, and is inconsistent with the Aarch64 target.

Motivation: To make it easier to verify that cc-rs' conversion from rustc to Clang/LLVM triples is correct.

CC target maintainers @jclulow and @pfmooney.
r? jieyouxu

We were passing "pc" as the vendor component, which isn't present in the
rustc triple, and is inconsistent with the Aarch64 target.
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 12, 2025
@rustbot
Copy link
Collaborator

rustbot commented Mar 12, 2025

These commits modify compiler targets.
(See the Target Tier Policy.)

@jieyouxu
Copy link
Member

Please r=me if target maintainers agree.
@bors delegate+ rollup

@bors
Copy link
Contributor

bors commented Mar 12, 2025

✌️ @madsmtm, you can now approve this pull request!

If @jieyouxu told you to "r=me" after making some further change, please make that change, then do @bors r=@jieyouxu

@jieyouxu
Copy link
Member

@rustbot blocked (waiting to hear back from target maintainers, not much for me or PR author to do)

@rustbot rustbot added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 12, 2025
@pfmooney
Copy link
Contributor

We were passing "pc" as the vendor component, which isn't present in the rustc triple, and is inconsistent with the Aarch64 target.

It's true that those platforms do differ in their triples, but I'm not sure we can simply change the amd64 side. Have you built an illumos toolchain with this in place to check if the LLVM interactions are impacted?

@madsmtm
Copy link
Contributor Author

madsmtm commented Mar 13, 2025

We were passing "pc" as the vendor component, which isn't present in the rustc triple, and is inconsistent with the Aarch64 target.

It's true that those platforms do differ in their triples, but I'm not sure we can simply change the amd64 side. Have you built an illumos toolchain with this in place to check if the LLVM interactions are impacted?

Nope, was kinda hoping someone actually experienced with Illumos would ;).

I have looked at all usage sites of (Triple|TargetVendor)::(PC|UnknownVendor) in llvm-project though, the distinction is only used once in LLVM itself, and that's in a Mach-O specific code path. All other usage of these are in Clang and LLDB, so I'm fairly confident that it won't have any effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-blocked Status: Blocked on something else such as an RFC or other implementation work. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants