mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Auto merge of #14312 - weihanglo:doc, r=epage
docs: clarify `target.'cfg(...)'` doesnt respect cfg from build script
This commit is contained in:
commit
dc041a0599
@ -1173,9 +1173,9 @@ rustflags = ["…", "…"]
|
||||
```
|
||||
|
||||
`cfg` values come from those built-in to the compiler (run `rustc --print=cfg`
|
||||
to view), values set by [build scripts], and extra `--cfg` flags passed to
|
||||
`rustc` (such as those defined in `RUSTFLAGS`). Do not try to match on
|
||||
`debug_assertions` or Cargo features like `feature="foo"`.
|
||||
to view) and extra `--cfg` flags passed to `rustc` (such as those defined in
|
||||
`RUSTFLAGS`). Do not try to match on `debug_assertions`, `test`, Cargo features
|
||||
like `feature="foo"`, or values set by [build scripts].
|
||||
|
||||
If using a target spec JSON file, the [`<triple>`] value is the filename stem.
|
||||
For example `--target foo/bar.json` would match `[target.bar]`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user