diff options
| author | Havvy (Ryan Scheel) <ryan.havvy@gmail.com> | 2018-10-15 21:35:56 -0700 |
|---|---|---|
| committer | Havvy (Ryan Scheel) <ryan.havvy@gmail.com> | 2018-10-15 21:38:32 -0700 |
| commit | 8e10ea68296c8ba6b4f6fddb445522d4b5281084 (patch) | |
| tree | 56b3274da0d8d223baec37a6a29ed5e0b8e759b5 /src/doc | |
| parent | 46880f41b7aeb897b8245474196bba9dc11f0e88 (diff) | |
| download | rust-8e10ea68296c8ba6b4f6fddb445522d4b5281084.tar.gz rust-8e10ea68296c8ba6b4f6fddb445522d4b5281084.zip | |
[Rustc Book] Explain --cfg's arguments
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rustc/src/command-line-arguments.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index e2b001832fe..ea3277b1320 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -10,6 +10,11 @@ This flag will print out help information for `rustc`. This flag can turn on or off various `#[cfg]` settings. +The value can either be a single identifier or two identifiers separated by `=`. + +For examples, `--cfg 'verbose'` or `--cfg 'feature=serde'`. These correspond +to `#[cfg(verbose)]` and `#[cfg(feature = "serde")]` respectively. + ## `-L`: add a directory to the library search path When looking for external crates, a directory passed to this flag will be searched. |
