Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use verbose version flag to get
rustc
version (#5616)
`rustc` by default only gives a short version output like this ```console $ rustc --version rustc 1.75.0-nightly (42b1224e9 2023-10-15) ``` There is, however, a more verbose version info that also includes the LLVM version used: ```console $ rustc --version --verbose rustc 1.75.0-nightly (42b1224e9 2023-10-15) binary: rustc commit-hash: 42b1224e9eb37177f608d3f6a6f2be2ee13902e4 commit-date: 2023-10-15 host: x86_64-unknown-linux-gnu release: 1.75.0-nightly LLVM version: 17.0.2 ``` This is useful information, so it should be accessible. --- I’d normally have used `--version --verbose`, but it seems that the `versionFlag` property is passed as one single argument to `rustc` and not split on spaces, so I used the short form `-vV` instead.
- Loading branch information