diff options
| author | David Tolnay <dtolnay@gmail.com> | 2023-07-16 23:05:12 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2023-07-20 11:04:32 -0700 |
| commit | 5ca0946ac0ae7c75feb3474039c7fb9a5348601d (patch) | |
| tree | 1e477301263d57a0f53b0e9725fa28a2b05dda23 /src/doc/rustc | |
| parent | 7ee059b8ac986f5c127063870336e934f898530e (diff) | |
| download | rust-5ca0946ac0ae7c75feb3474039c7fb9a5348601d.tar.gz rust-5ca0946ac0ae7c75feb3474039c7fb9a5348601d.zip | |
Document --print KIND=PATH in Command-line Arguments documentation
Diffstat (limited to 'src/doc/rustc')
| -rw-r--r-- | src/doc/rustc/src/command-line-arguments.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index 2c7c05c0c4b..4d32897cc14 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -260,6 +260,10 @@ The valid types of print values are: This returns rustc's minimum supported deployment target if no `*_DEPLOYMENT_TARGET` variable is present in the environment, or otherwise returns the variable's parsed value. +A filepath may optionally be specified for each requested information kind, in +the format `--print KIND=PATH`, just like for `--emit`. When a path is +specified, information will be written there instead of to stdout. + [conditional compilation]: ../reference/conditional-compilation.html [deployment target]: https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html |
