-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Revert vita's c_char back to i8 #136667
base: master
Are you sure you want to change the base?
Revert vita's c_char back to i8 #136667
Conversation
r? @ibraheemdev rustbot has assigned @ibraheemdev. Use |
is there a bug open against clang? |
( or should someone else be fixing the clang-side issue? ) |
I don't think so. In my understanding it doesn't have support for the Vita specifically, nor have I seen evidence of people using Clang for the Vita. I investigated a bit on what would it take to fix it there, AFAIK this would be the best way:
I'm not sure if the changes would need to be tested. To be able to test these changes, someone would need to figure out:
Overall it doesn't seem that complicated and it would be great if someone figured it out, but at this moment I'm personally more interested in fixing the Rust toolchain (which doesn't use Clang, only LLVM). To be honest, I feel a bit awkward creating a bug report for a platform that's not yet supported 😅 |
I'm not the best person to review this. r? libs |
@pheki, I see that you are one of the target maintainers, so let's check with the others: @nikarh and @zetanumbers, any comment? |
Agree with @pheki. |
LGTM. I remember signed by default |
Thanks everyone! I'm marking this blocked until the libc update is ready to go with it. @rustbot blocked |
Description
Hi!
#132975 changed the definition of
c_char
from i8 to u8 for most ARM targets. While that would usually be correct, VITASDK uses signed chars by default. The Clang definitions are incorrect because Clang is not (yet?) supported by the vita commmunity /VITADSK
, On the Rust side, the pre-compiled libraries the user can link to are all compiled using vita'sgcc
and we setTARGET_CC
andTARGET_CXX
incargo vita
for build scripts usingcc
.I'm creating it as a draft PR so that we can discuss it and possibly get it approved here, but wait to merge the libc side and get a libc version first, as having the definitions out of sync breaks std. As a nightly-only target it can be confusing/frustrating for new users when the latest nightly, which is the default, is broken.