Skip to content

Commit

Permalink
Auto merge of #10513 - Jules-Bertholet:patch-1, r=ehuss
Browse files Browse the repository at this point in the history
Fix wrong info in "Environment variables" docs

`target_family` can be more than just Unix or Windows, build scripts need to know this and handle it properly.

### What does this PR try to resolve?

Documentation was wrong/misleading
  • Loading branch information
bors committed Mar 30, 2022
2 parents 3c6a6e4 + a49ec27 commit 7a1d806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/src/reference/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ let out_dir = env::var("OUT_DIR").unwrap();
those defined in `RUSTFLAGS`). Some examples of what these variables are:
* `CARGO_CFG_UNIX` — Set on [unix-like platforms].
* `CARGO_CFG_WINDOWS` — Set on [windows-like platforms].
* `CARGO_CFG_TARGET_FAMILY=unix` — The [target family], either `unix` or `windows`.
* `CARGO_CFG_TARGET_FAMILY=unix` — The [target family].
* `CARGO_CFG_TARGET_OS=macos` — The [target operating system].
* `CARGO_CFG_TARGET_ARCH=x86_64` — The CPU [target architecture].
* `CARGO_CFG_TARGET_VENDOR=apple` — The [target vendor].
Expand Down

0 comments on commit 7a1d806

Please sign in to comment.