@@ -53,10 +53,9 @@ Comma separated list of types of crates for the compiler to emit.
53
53
Specify the name of the crate being built.
54
54
.TP
55
55
\fB \-\- emit \fR [asm|llvm\- bc|llvm\- ir|obj|link|dep\- info][=\fI PATH \fR ]
56
- Configure the output that \fB rustc \fR will produce.
57
-
58
- Each emission may also have an optional explicit output \fI PATH \fR specified for that particular
59
- emission kind. This path takes precedence over the \fB -o \fR option.
56
+ Configure the output that \fB rustc \fR will produce. Each emission may also have
57
+ an optional explicit output \fI PATH \fR specified for that particular emission
58
+ kind. This path takes precedence over the \fB -o \fR option.
60
59
.TP
61
60
\fB \-\- print \fR [crate\- name|file\- names|sysroot]
62
61
Comma separated list of compiler information to print on stdout.
@@ -68,13 +67,11 @@ Equivalent to \fI\-C\ debuginfo=2\fR.
68
67
Equivalent to \fI \- C \ opt \- level=2 \fR .
69
68
.TP
70
69
\fB \- o \fR \fI FILENAME \fR
71
- Write output to \fI FILENAME \fR .
72
- Ignored if multiple \fI \-\- emit \fR outputs are specified which don't have an
73
- explicit path otherwise.
70
+ Write output to \fI FILENAME \fR . Ignored if multiple \fI \-\- emit \fR outputs are specified which
71
+ don't have an explicit path otherwise.
74
72
.TP
75
73
\fB \-\- out \- dir \fR \fI DIR \fR
76
- Write output to compiler\[hy ] chosen filename in \fI DIR \fR .
77
- Ignored if \fI \- o \fR is specified.
74
+ Write output to compiler\[hy ] chosen filename in \fI DIR \fR . Ignored if \fI \- o \fR is specified.
78
75
Defaults to the current directory.
79
76
.TP
80
77
\fB \-\- explain \fR \fI OPT \fR
@@ -83,12 +80,26 @@ Provide a detailed explanation of an error message.
83
80
\fB \-\- test \fR
84
81
Build a test harness.
85
82
.TP
86
- \fB \-\- target \fR \fI TRIPLE \fR
87
- Target triple \fI cpu \fR \- \fI manufacturer \fR \- \fI kernel \fR [\- \fI os \fR ]
88
- to compile for (see chapter 3.4 of
89
- .UR http://www.sourceware.org/autobook/
90
- .UE
91
- for details).
83
+ \fB \-\- target \fR \fI TARGET \fR
84
+ Target triple for which the code is compiled. This option defaults to the host’s target
85
+ triple. The target triple has the general format <arch><sub>\- <vendor>\- <sys>\- <abi>, where:
86
+ .RS
87
+ .TP
88
+ .B <arch>
89
+ x86, arm, thumb, mips, etc.
90
+ .TP
91
+ .B <sub>
92
+ for example on ARM: v5, v6m, v7a, v7m, etc.
93
+ .TP
94
+ .B <vendor>
95
+ pc, apple, nvidia, ibm, etc.
96
+ .TP
97
+ .B <sys>
98
+ none, linux, win32, darwin, cuda, etc.
99
+ .TP
100
+ .B <abi>
101
+ eabi, gnu, android, macho, elf, etc.
102
+ .RE
92
103
.TP
93
104
\fB \- W help \fR
94
105
Print 'lint' options and default settings.
0 commit comments