about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorAllen Wild <allenwild93@gmail.com>2022-04-13 00:56:47 -0400
committerAllen Wild <allenwild93@gmail.com>2022-04-16 14:54:17 -0400
commit870cb8ef922dc6f4a1537572cd302e5a35e1869a (patch)
tree05531214a899ee25bedf1b0a591871fdd8eb686e /compiler/rustc_codegen_llvm/src
parentd9b3ff7d34335c5bc0b2afed640b65d64a85fe03 (diff)
downloadrust-870cb8ef922dc6f4a1537572cd302e5a35e1869a.tar.gz
rust-870cb8ef922dc6f4a1537572cd302e5a35e1869a.zip
bootstrap: consolidate subcommand parsing and matching
There's several places where the x.py command names are matched as
strings, leading to some inconsistencies and opportunities for cleanup.

* Add Format, Clean, and Setup variants to builder::Kind.
* Use Kind to parse the x.py subcommand name (including aliases)
* Match on the subcommand Kind rather than strings when handling
  options and help text.
* Several subcommands don't display any paths when run with `-h -v` even
  though the help text indicates that they should. Fix this and refactor
  so that manually keeping matches in sync isn't necessary.

Fixes #95937
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions