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

The Rust Reference - no mention of #[cfg(target_env)]. #27587

Closed
ghost opened this issue Aug 7, 2015 · 1 comment
Closed

The Rust Reference - no mention of #[cfg(target_env)]. #27587

ghost opened this issue Aug 7, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 7, 2015

Title says it all.

cc @steveklabnik

@alexcrichton
Copy link
Member

This was added recently for MUSL/MSVC, and for @steveklabnik's sake the docs would probably look something like:

  • target_env - a cfg option provided by the compiler by default describing the runtime environment of the target platform. Some examples of this are "musl" for builds targeting the MUSL libc implementation, "msvc" for Windows builds targeting MSVC, and "gnu" frequently the rest of the time. This option may also be blank on some platforms.

steveklabnik added a commit to steveklabnik/rust that referenced this issue Aug 18, 2015
steveklabnik added a commit to steveklabnik/rust that referenced this issue Aug 18, 2015
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants