1- .TH RUSTC "1" "February 2013" "rustc 0.6 " "User Commands"
1+ .TH RUSTC "1" "July 2013" "rustc 0.7 " "User Commands"
22.SH NAME
33rustc \- rust compiler
44.SH SYNOPSIS
@@ -33,6 +33,12 @@ Add a directory to the library search path
3333\fB \-\- lib \fR
3434Compile a library crate
3535.TP
36+ \fB \-\- linker \fR LINKER
37+ Program to use for linking instead of the default
38+ .TP
39+ \fB \-\- link-args \fR FLAGS
40+ A space-separated list of flags passed to the linker
41+ .TP
3642\fB \-\- ls \fR
3743List the symbols defined by a library crate
3844.TP
@@ -48,6 +54,11 @@ Write output to <filename>
4854\fB \-\- opt \- level \fR LEVEL
4955Optimize with possible levels 0-3
5056.TP
57+ \fB \-\- passes \fR NAMES
58+ Comma- or space-separated list of optimization passes. Overrides
59+ the default passes for the optimization level. A value of 'list'
60+ will list the available passes.
61+ .TP
5162\fB \-\- out \- dir \fR DIR
5263Write output to compiler-chosen filename in <dir>
5364.TP
@@ -77,6 +88,12 @@ Target triple cpu-manufacturer-kernel[-os] to compile for (see
7788http://sources.redhat.com/autobook/autobook/autobook_17.html
7889for detail)
7990.TP
91+ \fB \-\- target-feature \fR TRIPLE
92+ Target-specific attributes (see llc -mattr=help for detail)
93+ .TP
94+ \fB \-\- android-cross-path \fR PATH
95+ The path to the Android NDK
96+ .TP
8097\fB \- W \fR help
8198Print 'lint' options and default settings
8299.TP
@@ -94,56 +111,6 @@ Set lint forbidden
94111.TP
95112\fB \- Z \fR FLAG
96113Set internal debugging options. Use "-Z help" to print available options.
97-
98- Available debug flags are:
99- .RS
100- .IP \[bu ]
101- \fB verbose \fR - in general, enable more debug printouts
102- .IP \[bu ]
103- \fB time \- passes \fR - measure time of each rustc pass
104- .IP \[bu ]
105- \fB count \- llvm \- insns \fR - count where LLVM instrs originate
106- .IP \[bu ]
107- \fB time \- llvm \- passes \fR - measure time of each LLVM pass
108- .IP \[bu ]
109- \fB trans \- stats \fR - gather trans statistics
110- .IP \[bu ]
111- \fB no \- asm \- comments \fR - omit comments when using \fI \- S \fR
112- .IP \[bu ]
113- \fB no \- verify \fR - skip LLVM verification
114- .IP \[bu ]
115- \fB trace \fR - emit trace logs
116- .IP \[bu ]
117- \fB coherence \fR - perform coherence checking
118- .IP \[bu ]
119- \fB borrowck \- stats \fR - gather borrowck statistics
120- .IP \[bu ]
121- \fB borrowck \- note \- pure \fR - note where purity is req'd
122- .IP \[bu ]
123- \fB borrowck \- note \- loan \fR - note where loans are req'd
124- .IP \[bu ]
125- \fB no \- landing \- pads \fR - omit landing pads for unwinding
126- .IP \[bu ]
127- \fB debug \- llvm \fR - enable debug output from LLVM
128- .IP \[bu ]
129- \fB count \- type \- sizes \fR - count the sizes of aggregate types
130- .IP \[bu ]
131- \fB meta \- stats \fR - gather metadata statistics
132- .IP \[bu ]
133- \fB no \- opt \fR - do not optimize, even if \fI \- O \fR is passed
134- .IP \[bu ]
135- \fB no \- monomorphic \- collapse \fR - do not collapse template instantiations
136- .IP \[bu ]
137- \fB gc \fR - Garbage collect shared data (experimental)
138- .IP \[bu ]
139- \fB jit \fR - Execute using JIT (experimental)
140- .IP \[bu ]
141- \fB extra \- debug \- info \fR - Extra debugging info (experimental)
142- .IP \[bu ]
143- \fB debug \- info \fR - Produce debug info (experimental)
144- .IP \[bu ]
145- \fB static \fR - Use or produce static libraries or binaries (experimental)
146- .RE
147114.TP
148115\fB \- v \fR , \fB \-\- version \fR
149116Print version info and exit
0 commit comments