]> git.lizzy.rs Git - rust.git/commitdiff
add cfg(target_env) to the reference
authorSteve Klabnik <steve@steveklabnik.com>
Tue, 18 Aug 2015 17:45:01 +0000 (13:45 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Tue, 18 Aug 2015 18:24:25 +0000 (14:24 -0400)
Fixes #27587

src/doc/reference.md

index 4d5564d9fafb082b574e0eaf8f0480d234e50b29..b4dec8f1fef9030c3f9dca30f40eb2b5be889045 100644 (file)
@@ -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`.