Skip to content

Commit 828c7ef

Browse files
committed
docs: clarify target.'cfg(...)' doesnt respect cfg from build script
This was a mistake, see #14306
1 parent fe50f67 commit 828c7ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/doc/src/reference/config.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1173,9 +1173,9 @@ rustflags = ["…", "…"]
11731173
```
11741174

11751175
`cfg` values come from those built-in to the compiler (run `rustc --print=cfg`
1176-
to view), values set by [build scripts], and extra `--cfg` flags passed to
1177-
`rustc` (such as those defined in `RUSTFLAGS`). Do not try to match on
1178-
`debug_assertions` or Cargo features like `feature="foo"`.
1176+
to view) and extra `--cfg` flags passed to `rustc` (such as those defined in
1177+
`RUSTFLAGS`). Do not try to match on `debug_assertions`, `test`, Cargo features
1178+
like `feature="foo"`, or values set by [build scripts].
11791179

11801180
If using a target spec JSON file, the [`<triple>`] value is the filename stem.
11811181
For example `--target foo/bar.json` would match `[target.bar]`.

0 commit comments

Comments
 (0)