Skip to content

Commit 8e7dbeb

Browse files
committed
doc: clarify different target has different set of CARGO_CFG_* values
1 parent 5dfe9bf commit 8e7dbeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/src/reference/environment-variables.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ let out_dir = env::var("OUT_DIR").unwrap();
353353
* `CARGO_CFG_TARGET_POINTER_WIDTH=64` --- The CPU [pointer width].
354354
* `CARGO_CFG_TARGET_ENDIAN=little` --- The CPU [target endianness].
355355
* `CARGO_CFG_TARGET_FEATURE=mmx,sse` --- List of CPU [target features] enabled.
356+
> Note that different [target triples][Target Triple] have different sets of `cfg` values,
357+
> hence variables present in one target triple might not be available in the other.
356358
* `OUT_DIR` --- the folder in which all output and intermediate artifacts should
357359
be placed. This folder is inside the build directory for the
358360
package being built, and it is unique for the package in question.

0 commit comments

Comments
 (0)