Skip to content
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

add an endianness meta attribute #4367

Closed
thestinger opened this issue Jan 7, 2013 · 0 comments
Closed

add an endianness meta attribute #4367

thestinger opened this issue Jan 7, 2013 · 0 comments
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@thestinger
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

2 participants