-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
add an endianness meta attribute #4367
Copy link
Copy link
Closed
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Metadata
Metadata
Assignees
Labels
A-attributesArea: Attributes (`#[…]`, `#![…]`)Area: Attributes (`#[…]`, `#![…]`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
libcmodule (how libc++ does it) and then adding it to thesrc/librustc/driver/driver.rs.