-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Remove "powerpc64le" and "mipsel" target_arch #31312
Conversation
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
r? @brson There was a little discussion which led to this conclusion, and I believe this is not a breaking change because |
@bors r+ |
📌 Commit 4c4ab1d has been approved by |
⌛ Testing commit 4c4ab1d with merge 20b6b58... |
💔 Test failed - auto-linux-64-nopt-t |
Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the `target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the `powerpc64le` target does indeed set the `target_arch` as `powerpc64le`, causing a bit of inconsistency between theset two. As these are just the same instance of one instruction set, let's use `target_endian` to switch between them and only set the `target_arch` as one value. This should cut down on the number of `#[cfg]` annotations necessary and all around be a little more ergonomic.
4c4ab1d
to
8f803c2
Compare
Currently the `mipsel-unknown-linux-gnu` target doesn't actually set the `target_arch` value to `mipsel` but it rather uses `mips`. Alternatively the `powerpc64le` target does indeed set the `target_arch` as `powerpc64le`, causing a bit of inconsistency between theset two. As these are just the same instance of one instruction set, let's use `target_endian` to switch between them and only set the `target_arch` as one value. This should cut down on the number of `#[cfg]` annotations necessary and all around be a little more ergonomic.
Currently the
mipsel-unknown-linux-gnu
target doesn't actually set thetarget_arch
value tomipsel
but it rather usesmips
. Alternatively thepowerpc64le
target does indeed set thetarget_arch
aspowerpc64le
,causing a bit of inconsistency between theset two.
As these are just the same instance of one instruction set, let's use
target_endian
to switch between them and only set thetarget_arch
as onevalue. This should cut down on the number of
#[cfg]
annotations necessary andall around be a little more ergonomic.