-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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 armv7-sony-vita-newlibeabihf
LLVM target triple
#138426
base: master
Are you sure you want to change the base?
Conversation
It was previously normalized by LLVM to `thumbv7a-vita-unknown-eabihf`, which is probably wrong, as Vita is the OS.
These commits modify compiler targets. |
Another thing to consider: Is |
This seems to be basically if the target maintainers agree with this change, so please r=me if they do. |
@rustbot blocked (waiting to hear back from target maintainers, not much for me or PR author to do) |
Interestingly some docs from Clang indicate that the vendor is optional but sys not so much: "The vendor needs to be specified only if there’s a relevant change, for instance between PC and Apple. Most of the time it can be omitted (and Unknown) will be assumed, which sets the defaults for the specified architecture. The system name is generally the OS (linux, darwin), but could be special like the bare-metal “none”." That said, I'm personally fine with this change with one caveat: |
I have originally used bare-metal llvm target |
Yeah, arguably the invalid normalization could be a LLVM bug? I picked I'm fine with |
Edit: fixed target names |
It was previously normalized by LLVM to
thumbv7a-vita-unknown-eabihf
(can be seen withclang -target thumbv7a-vita-eabihf -v
), which seems wrong, as Vita is the OS name.Motivation: To make it easier to verify that
cc-rs
' conversion fromrustc
to Clang/LLVM triples is correct.CC target maintainers @nikarh, @pheki and @zetanumbers.
r? jieyouxu