Skip to content

Commit fe5c439

Browse files
authored
Auto merge of rust-lang#34783 - Dridi:cdylib_usage, r=alexcrichton
Mention the crate type cdylib in rustc's usage Hello, I just tried to build a `cdylib` with the latest stable release, I've been passively waiting for this for quite some time now. Tested successfully on my machine, although it doesn't appear in `rustc`'s usage it seems to work like a charm so far. 😀 Thanks!
2 parents 6998018 + 3205c51 commit fe5c439

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

man/rustc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The optional \fIKIND\fR can be one of \fIstatic\fR, \fIdylib\fR, or
4444
\fIframework\fR.
4545
If omitted, \fIdylib\fR is assumed.
4646
.TP
47-
\fB\-\-crate\-type\fR [bin|lib|rlib|dylib|staticlib]
47+
\fB\-\-crate\-type\fR [bin|lib|rlib|dylib|cdylib|staticlib]
4848
Comma separated list of types of crates for the compiler to emit.
4949
.TP
5050
\fB\-\-crate\-name\fR \fINAME\fR

src/librustc/session/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ pub fn rustc_short_optgroups() -> Vec<RustcOptGroup> {
981981
assumed.", "[KIND=]NAME"),
982982
opt::multi_s("", "crate-type", "Comma separated list of types of crates
983983
for the compiler to emit",
984-
"[bin|lib|rlib|dylib|staticlib]"),
984+
"[bin|lib|rlib|dylib|cdylib|staticlib]"),
985985
opt::opt_s("", "crate-name", "Specify the name of the crate being built",
986986
"NAME"),
987987
opt::multi_s("", "emit", "Comma separated list of types of output for \

0 commit comments

Comments
 (0)