You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only the most commonly-used options are listed here. All options are listed and
12
-
described below.
5
+
.Brustc
6
+
[\fIoptions\fR] \fI<input>\fR
13
7
14
8
.SH DESCRIPTION
15
9
This program is a compiler for the Rust language, available at
16
10
<\fBhttps://www.rust-lang.org\fR>.
17
11
18
12
.SH OPTIONS
13
+
19
14
.TP
20
-
\fB--bin\fR
15
+
\fB\-\-bin\fR
21
16
Compile an executable crate (default)
22
17
.TP
23
-
\fB-c\fR
18
+
\fB\-c\fR
24
19
Compile and assemble, but do not link
25
20
.TP
26
-
\fB--cfg<cfgspec>\fR
21
+
\fB\-\-cfg\fR <cfgspec>
27
22
Configure the compilation environment
28
23
.TP
29
-
\fB--emit-llvm\fR
24
+
\fB\-\-emit\-llvm\fR
30
25
Produce an LLVM bitcode file
31
26
.TP
32
-
\fB-g\fR
27
+
\fB\-g\fR
33
28
Produce debug info
34
29
.TP
35
-
\fB--gc\fR
30
+
\fB\-\-gc\fR
36
31
Garbage collect shared data (experimental/temporary)
37
32
.TP
38
-
\fB-h--help\fR
33
+
\fB\-h\fR\fB\-\-help\fR
39
34
Display this message
40
35
.TP
41
-
\fB-L<path>\fR
36
+
\fB\-L\fR <path>
42
37
Add a directory to the library search path
43
38
.TP
44
-
\fB--lib\fR
39
+
\fB\-\-lib\fR
45
40
Compile a library crate
46
41
.TP
47
-
\fB--ls\fR
48
-
List the symbols defined by a compiled librar crate
42
+
\fB\-\-ls\fR
43
+
List the symbols defined by a compiled library crate
49
44
.TP
50
-
\fB--no-asm-comments\fR
51
-
Do not add comments into the assembly source
52
-
.TP
53
-
\fB--no-lint-ctypes\fR
54
-
Suppress warnings for possibly incorrect ctype usage
55
-
.TP
56
-
\fB--no-trans\fR
45
+
\fB\-\-no\-trans\fR
57
46
Run all passes except translation; no output
58
47
.TP
59
-
\fB--no-verify\fR
60
-
Suppress LLVM verification step (slight speedup)
61
-
(see http://llvm.org/docs/Passes.html for detail)
62
-
.TP
63
-
\fB-O\fR
64
-
Equivalent to --opt-level=2
48
+
\fB\-O\fR
49
+
Equivalent to \fB\-\-opt\-level\fR=\fI2\fR
65
50
.TP
66
-
\fB-o<filename>\fR
51
+
\fB\-o\fR <filename>
67
52
Write output to <filename>
68
53
.TP
69
-
\fB--opt-level<lvl>\fR
70
-
Optimize with possible levels 0-3
54
+
\fB\-\-opt\-level\fR <lvl>
55
+
Optimize with possible levels 0\-3
71
56
.TP
72
-
\fB--out-dir<dir>\fR
73
-
Write output to compiler-chosen filename in <dir>
57
+
\fB\-\-out\-dir\fR <dir>
58
+
Write output to compiler\-chosen filename in <dir>
74
59
.TP
75
-
\fB--parse-only\fR
60
+
\fB\-\-parse\-only\fR
76
61
Parse only; do not compile, assemble, or link
77
62
.TP
78
-
\fB--pretty[type]\fR
79
-
Pretty-print the input instead of compiling; valid types are: \fBnormal\fR (un-annotated source), \fBexpanded\fR (crates expanded), \fBtyped\fR (crates expanded, with type annotations), or \fBidentified\fR (fully parenthesized, AST nodes and blocks with IDs)
0 commit comments