diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-08-18 13:45:01 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-08-18 14:24:25 -0400 |
| commit | 288edec968441254d42b38ec3d8dec76767f0f24 (patch) | |
| tree | 1c7e1252e57d4ebd3fcdadea676542b8befaa69e /src/doc/reference.md | |
| parent | c6291e04cc620ce3824d8bccdb8a5bd923fcd741 (diff) | |
| download | rust-288edec968441254d42b38ec3d8dec76767f0f24.tar.gz rust-288edec968441254d42b38ec3d8dec76767f0f24.zip | |
add cfg(target_env) to the reference
Fixes #27587
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 4d5564d9faf..b4dec8f1fef 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -2059,6 +2059,11 @@ The following configurations must be defined by the implementation: `"mips"`, `"powerpc"`, `"arm"`, or `"aarch64"`. * `target_endian = "..."`. Endianness of the target CPU, either `"little"` or `"big"`. +* `target_env = ".."` - an 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. * `target_family = "..."`. Operating system family of the target, e. g. `"unix"` or `"windows"`. The value of this configuration option is defined as a configuration itself, like `unix` or `windows`. |
