Skip to content

Commit 45e4fad

Browse files
committed
man: Add missing options to rustc.1
1 parent 10f94e3 commit 45e4fad

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

man/rustc.1

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.TH RUSTC "1" "March 2014" "rustc 0.11-pre" "User Commands"
22
.SH NAME
3-
rustc \- rust compiler
3+
rustc \- The Rust compiler
44
.SH SYNOPSIS
55
.B rustc
66
[\fIOPTIONS\fR] \fIINPUT\fR
@@ -33,9 +33,17 @@ List the symbols defined by a library crate
3333
\fB\-\-no\-trans\fR
3434
Run all passes except translation; no output
3535
.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
3740
Emit DWARF debug information into object files generated.
3841
.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
3947
\fB\-O\fR
4048
Equivalent to \fI\-\-opt\-level=2\fR
4149
.TP
@@ -58,6 +66,10 @@ Pretty-print the input instead of compiling; valid types are: normal
5866
expanded, with type annotations), or identified (fully parenthesized,
5967
AST nodes and blocks with IDs)
6068
.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
6173
\fB\-\-sysroot\fR PATH
6274
Override the system root
6375
.TP
@@ -151,15 +163,14 @@ level.
151163
Generates software floating point library calls instead of hardware
152164
instructions.
153165
.TP
154-
\fBgen-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
158166
\fBprefer-dynamic\fR
159167
Prefers dynamic linking to static linking.
160168
.TP
161169
\fBno-integrated-as\fR
162170
Force usage of an external assembler rather than LLVM's integrated one.
171+
.TP
172+
\fBrelocation-model\fR=[pic,static,dynamic-no-pic]
173+
The relocation model to use. (default: pic)
163174

164175
.SH "EXAMPLES"
165176
To build an executable from a source file with a main function:

0 commit comments

Comments
 (0)