add an endianness meta attribute #4367
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Rust currently doesn't run on a big-endian arch, but it would be nice to be able to write forward-compatible code when dealing with low-level details in bindings, since at some point it likely will. AFAICT this would involve exposing a constant in the
libc
module (how libc++ does it) and then adding it to thesrc/librustc/driver/driver.rs
.The text was updated successfully, but these errors were encountered: