Skip to content

add an endianness meta attribute #4367

Description

@thestinger

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 the src/librustc/driver/driver.rs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions