1
- .TH RUSTC "1" "February 2013" "rustc 0.6 " "User Commands"
1
+ .TH RUSTC "1" "July 2013" "rustc 0.7 " "User Commands"
2
2
.SH NAME
3
3
rustc \- rust compiler
4
4
.SH SYNOPSIS
@@ -33,6 +33,12 @@ Add a directory to the library search path
33
33
\fB \-\- lib \fR
34
34
Compile a library crate
35
35
.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
36
42
\fB \-\- ls \fR
37
43
List the symbols defined by a library crate
38
44
.TP
@@ -48,6 +54,11 @@ Write output to <filename>
48
54
\fB \-\- opt \- level \fR LEVEL
49
55
Optimize with possible levels 0-3
50
56
.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
51
62
\fB \-\- out \- dir \fR DIR
52
63
Write output to compiler-chosen filename in <dir>
53
64
.TP
@@ -77,6 +88,12 @@ Target triple cpu-manufacturer-kernel[-os] to compile for (see
77
88
http://sources.redhat.com/autobook/autobook/autobook_17.html
78
89
for detail)
79
90
.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
80
97
\fB \- W \fR help
81
98
Print 'lint' options and default settings
82
99
.TP
@@ -94,56 +111,6 @@ Set lint forbidden
94
111
.TP
95
112
\fB \- Z \fR FLAG
96
113
Set 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
147
114
.TP
148
115
\fB \- v \fR , \fB \-\- version \fR
149
116
Print version info and exit
0 commit comments