Skip to content

Commit 30e730a

Browse files
Elly Jonesbrson
authored andcommitted
---
yaml --- r: 5967 b: refs/heads/master c: 4c0b030 h: refs/heads/master i: 5965: 53b93fd 5963: 96cfdd1 5959: 5332151 5951: 3e75698 v: v3
1 parent 6912b07 commit 30e730a

File tree

2 files changed

+55
-28
lines changed

2 files changed

+55
-28
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 642c2fe9e67107b454a16bc4b531e6bbfb96174d
2+
refs/heads/master: 4c0b0309e3e86ba917df2a1424630f0b34483410

trunk/man/rustc.1

Lines changed: 54 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,28 @@ This program is a compiler for the Rust language, available at
1313
<\fBhttps://github.com/graydon/rust\fR>.
1414
.SH OPTIONS
1515
.TP
16-
\fB-h, --help\fR: Display help.
16+
\fB-h, --help\fR:
17+
Display help.
1718
.TP
18-
\fB-v, --version\fR: Display version information.
19+
\fB-v, --version\fR:
20+
Display version information.
1921
.TP
20-
\fB-o\fR \fIfilename\fR: Write output to \fIfilename\fR. The default output
22+
\fB-o\fR \fIfilename\fR:
23+
Write output to \fIfilename\fR. The default output
2124
filename for \fBfoo.rs\fR is otherwise \fBfoo\fR (when compiling a binary),
2225
\fBfoo\fR (when compiling a library), \fBfoo.o\fR (when using \fB-c\fR),
2326
\fBfoo.s\fR (when using \fB-S\fR) or \fBfoo.bc\fR (when using
2427
\fB--emit-llvm\fR).
2528
.TP
26-
\fB--lib\fR: Compile and link a library crate into a shared object.
29+
\fB--lib\fR:
30+
Compile and link a library crate into a shared object.
2731
.TP
28-
\fB--static\fR: Produce a statically-linked binary, or generate a static
32+
\fB--static\fR:
33+
Produce a statically-linked binary, or generate a static
2934
library.
3035
.TP
31-
\fB--pretty\fR \fItype\fR: Pretty-print the input. Valid \fItype\fRs are:
36+
\fB--pretty\fR \fItype\fR:
37+
Pretty-print the input. Valid \fItype\fRs are:
3238
.RS
3339
.TP
3440
\fBnormal\fR: Un-annotated source.
@@ -40,61 +46,82 @@ library.
4046
\fBidentified\fR: Fully parenthesized, ast nodes and blocks annotated with IDs.
4147
.RE
4248
.TP
43-
\fB--ls\fR: Lists symbols defined by the specified \fBcompiled\fR library.
49+
\fB--ls\fR:
50+
Lists symbols defined by the specified \fBcompiled\fR library.
4451
.TP
45-
\fB-L\fR \fIpath\fR: Adds \fIpath\fR to the library search path.
52+
\fB-L\fR \fIpath\fR:
53+
Adds \fIpath\fR to the library search path.
4654
.TP
47-
\fB--noverify\fR: Disables LLVM verification pass, which does sanity checking of
55+
\fB--noverify\fR:
56+
Disables LLVM verification pass, which does sanity checking of
4857
bitcode generated by rustc. Using this option gives a slight speedup, at the
4958
cost of vastly reduced ability to catch rustc bugs. See
5059
<\fBhttp://llvm.org/docs/Passes.html\fR> for a list of properties checked.
5160
.TP
52-
\fB--parse-only\fR: Run the parse phase only. If parsing succeeds, produces no
61+
\fB--parse-only\fR:
62+
Run the parse phase only. If parsing succeeds, produces no
5363
output.
5464
.TP
55-
\fB--no-trans\fR: Run all passes except translation. Produces no output.
65+
\fB--no-trans\fR:
66+
Run all passes except translation. Produces no output.
5667
.TP
5768
\fB-g\fR: Produce debug info.
5869
.TP
59-
\fB--OptLevel\fR=\fIlevel\fR: Set optimization level to \fIlevel\fR.
70+
\fB--OptLevel\fR=\fIlevel\fR:
71+
Set optimization level to \fIlevel\fR.
6072
.TP
61-
\fB-O\fR: Equal to --OptLevel=2
73+
\fB-O\fR:
74+
Equal to --OptLevel=2
6275
.TP
63-
\fB-S\fR: Compile to assembly, but do not assemble or link.
76+
\fB-S\fR:
77+
Compile to assembly, but do not assemble or link.
6478
.TP
65-
\fB-c\fR: Compile and assemble, but do not link.
79+
\fB-c\fR:
80+
Compile and assemble, but do not link.
6681
.TP
67-
\fB--emit-llvm\fR: Generate llvm bitcode.
82+
\fB--emit-llvm\fR:
83+
Generate llvm bitcode.
6884
.TP
69-
\fB--save-temps\fR: For foo.rs, save generated bitcode before optimization to
85+
\fB--save-temps\fR:
86+
For foo.rs, save generated bitcode before optimization to
7087
\fBfoo.bc\fR, bitcode after optimization to \fBfoo.opt.bc\fR, and the generated
7188
object file to \fBfoo.o\fR.
7289
.TP
73-
\fB--stats\fR: Print statistics about compilation.
90+
\fB--stats\fR:
91+
Print statistics about compilation.
7492
.TP
75-
\fB--cfg\fR \fIcfgspec\fR: Provide a crate config spec.
93+
\fB--cfg\fR \fIcfgspec\fR:
94+
Provide a crate config spec.
7695
.TP
77-
\fB--time-passes\fR: Print runtimes of compilation phases.
96+
\fB--time-passes\fR:
97+
Print runtimes of compilation phases.
7898
.TP
79-
\fB--time-llvm-passes\fR: Print runtimes of llvm phases.
99+
\fB--time-llvm-passes\fR:
100+
Print runtimes of llvm phases.
80101
.TP
81-
\fB--sysroot\fR \fIpath\fR: Set the system root. Default is the directory above
102+
\fB--sysroot\fR \fIpath\fR:
103+
Set the system root. Default is the directory above
82104
rustc's.
83105
.TP
84-
\fB--target\fR \fIgnu-config-name\fR: Set the compilation target, which is a
106+
\fB--target\fR \fIgnu-config-name\fR:
107+
Set the compilation target, which is a
85108
string of the form \fBcpu\fR-\fBmanufacturer\fR-\fBkernel\fR[-\fBos\fR]. Example
86109
values include "i686-unknown-linux-gnu" and "mips-idt-ecoff"; see
87110
<\fBhttp://sources.redhat.com/autobook/autobook/autobook_17.html\fR>. If not
88111
supplied, the host triple is used (see \fB--version\fR output).
89112
.TP
90-
\fB--no-typestate\fR: Disable the typestate pass. This breaks some safety
113+
\fB--no-typestate\fR:
114+
Disable the typestate pass. This breaks some safety
91115
guarantees of the language and is quite dangerous.
92116
.TP
93-
\fB--test\fR: Build a test harness.
117+
\fB--test\fR:
118+
Build a test harness.
94119
.TP
95-
\fB--gc\fR: \fBEXPERIMENTAL\fR. Garbage-collect shared data.
120+
\fB--gc\fR:
121+
\fBEXPERIMENTAL\fR. Garbage-collect shared data.
96122
.TP
97-
\fB--stack-growth\fR: \fBEXPERIMENTAL\fR. Perform stack growth checks.
123+
\fB--stack-growth\fR:
124+
\fBEXPERIMENTAL\fR. Perform stack growth checks.
98125
.SH "BUGS"
99126
See \fBhttps://github.com/graydon/rust/issues\fR for a list of known bugs.
100127
.SH "AUTHOR"

0 commit comments

Comments
 (0)