1
1
.TH RUSTC "1" "March 2014" "rustc 0.11-pre" "User Commands"
2
2
.SH NAME
3
- rustc \- rust compiler
3
+ rustc \- The Rust compiler
4
4
.SH SYNOPSIS
5
5
.B rustc
6
6
[\fI OPTIONS \fR ] \fI INPUT \fR
@@ -33,9 +33,17 @@ List the symbols defined by a library crate
33
33
\fB \-\- no \- trans \fR
34
34
Run all passes except translation; no output
35
35
.TP
36
- \fB \- g \fR , \fB \-\- debuginfo \fR
36
+ \fB \-\- no \- analysis \fR
37
+ Parse and expand the source, but run no analysis and produce no output
38
+ .TP
39
+ \fB \- g \fR
37
40
Emit DWARF debug information into object files generated.
38
41
.TP
42
+ \fB \-\- debuginfo \fR LEVEL
43
+ Emit DWARF debug info to the objects created: 0 = no debug info, 1 =
44
+ line-tables only (for stacktraces and breakpoints), 2 = full debug
45
+ info with variable and type information (same as -g).
46
+ .TP
39
47
\fB \- O \fR
40
48
Equivalent to \fI \-\- opt \- level=2 \fR
41
49
.TP
@@ -58,6 +66,10 @@ Pretty-print the input instead of compiling; valid types are: normal
58
66
expanded, with type annotations), or identified (fully parenthesized,
59
67
AST nodes and blocks with IDs)
60
68
.TP
69
+ \fB \-\- dep-info \fR [FILENAME]
70
+ Output dependency info to <filename> after compiling, in o format suitable
71
+ for use by Makefiles.
72
+ .TP
61
73
\fB \-\- sysroot \fR PATH
62
74
Override the system root
63
75
.TP
@@ -151,15 +163,14 @@ level.
151
163
Generates software floating point library calls instead of hardware
152
164
instructions.
153
165
.TP
154
- \fB gen-crate-map \fR
155
- Forces generate of a toplevel crate map. May be required for logging to work
156
- when rust is embedded into another application.
157
- .TP
158
166
\fB prefer-dynamic \fR
159
167
Prefers dynamic linking to static linking.
160
168
.TP
161
169
\fB no-integrated-as \fR
162
170
Force usage of an external assembler rather than LLVM's integrated one.
171
+ .TP
172
+ \fB relocation-model \fR =[pic,static,dynamic-no-pic]
173
+ The relocation model to use. (default: pic)
163
174
164
175
.SH "EXAMPLES"
165
176
To build an executable from a source file with a main function:
0 commit comments