Skip to content

Commit f5e6987

Browse files
committed
docs(env): clarify unavailable cfg values for build scripts
1 parent e8adba9 commit f5e6987

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ let out_dir = env::var("OUT_DIR").unwrap();
355355
* `CARGO_CFG_TARGET_FEATURE=mmx,sse` --- List of CPU [target features] enabled.
356356
> Note that different [target triples][Target Triple] have different sets of `cfg` values,
357357
> hence variables present in one target triple might not be available in the other.
358+
>
359+
> Some cfg values like `debug_assertions`, `test`, and Cargo features like
360+
> `feature="foo"` are not available.
358361
* `OUT_DIR` --- the folder in which all output and intermediate artifacts should
359362
be placed. This folder is inside the build directory for the package being built,
360363
and it is unique for the package in question.

0 commit comments

Comments
 (0)