Skip to content

Commit 787f415

Browse files
committed
auto merge of #13550 : brson/rust/man, r=alexcrichton
--no-analysis, --dep-info, -C relocation-model, remove --gen-crate-map
2 parents 1dec477 + 111178d commit 787f415

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
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:

src/librustc/driver/driver.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,8 @@ pub fn optgroups() -> Vec<getopts::OptGroup> {
11031103
1 = line-tables only (for stacktraces and breakpoints),
11041104
2 = full debug info with variable and type information (same as -g)", "LEVEL"),
11051105
optflag("", "no-trans", "Run all passes except translation; no output"),
1106-
optflag("", "no-analysis", "Parse and expand the output, but run no analysis or produce output"),
1106+
optflag("", "no-analysis",
1107+
"Parse and expand the source, but run no analysis and produce no output"),
11071108
optflag("O", "", "Equivalent to --opt-level=2"),
11081109
optopt("o", "", "Write output to <filename>", "FILENAME"),
11091110
optopt("", "opt-level", "Optimize with possible levels 0-3", "LEVEL"),
@@ -1116,7 +1117,9 @@ pub fn optgroups() -> Vec<getopts::OptGroup> {
11161117
typed (crates expanded, with type annotations),
11171118
or identified (fully parenthesized,
11181119
AST nodes and blocks with IDs)", "TYPE"),
1119-
optflagopt("", "dep-info", "Output dependency info to <filename> after compiling", "FILENAME"),
1120+
optflagopt("", "dep-info",
1121+
"Output dependency info to <filename> after compiling, \
1122+
in a format suitable for use by Makefiles", "FILENAME"),
11201123
optopt("", "sysroot", "Override the system root", "PATH"),
11211124
optflag("", "test", "Build a test harness"),
11221125
optopt("", "target", "Target triple cpu-manufacturer-kernel[-os]

0 commit comments

Comments
 (0)