mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 00:24:52 +00:00
add 'mir' as part of the --emit flag list in rustc --help menu and man doc.
This is added because 'rustc' can now generate MIR (referencing to "Teach rustc --emit=mir #39891").
This commit is contained in:
parent
5637ed7566
commit
63ed7843bb
|
@ -50,7 +50,7 @@ Comma separated list of types of crates for the compiler to emit.
|
||||||
\fB\-\-crate\-name\fR \fINAME\fR
|
\fB\-\-crate\-name\fR \fINAME\fR
|
||||||
Specify the name of the crate being built.
|
Specify the name of the crate being built.
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-emit\fR [asm|llvm\-bc|llvm\-ir|obj|link|dep\-info][=\fIPATH\fR]
|
\fB\-\-emit\fR [asm|llvm\-bc|llvm\-ir|obj|link|dep\-info|mir][=\fIPATH\fR]
|
||||||
Configure the output that \fBrustc\fR will produce. Each emission may also have
|
Configure the output that \fBrustc\fR will produce. Each emission may also have
|
||||||
an optional explicit output \fIPATH\fR specified for that particular emission
|
an optional explicit output \fIPATH\fR specified for that particular emission
|
||||||
kind. This path takes precedence over the \fB-o\fR option.
|
kind. This path takes precedence over the \fB-o\fR option.
|
||||||
|
|
|
@ -1246,7 +1246,7 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
|
||||||
"NAME"),
|
"NAME"),
|
||||||
opt::multi_s("", "emit", "Comma separated list of types of output for \
|
opt::multi_s("", "emit", "Comma separated list of types of output for \
|
||||||
the compiler to emit",
|
the compiler to emit",
|
||||||
"[asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info]"),
|
"[asm|llvm-bc|llvm-ir|obj|metadata|link|dep-info|mir]"),
|
||||||
opt::multi_s("", "print", "Comma separated list of compiler information to \
|
opt::multi_s("", "print", "Comma separated list of compiler information to \
|
||||||
print on stdout", &format!("[{}]",
|
print on stdout", &format!("[{}]",
|
||||||
&print_opts.join("|"))),
|
&print_opts.join("|"))),
|
||||||
|
|
Loading…
Reference in a new issue