Skip to content

Commit 56a13c0

Browse files
authored
Merge pull request #884 from yutannihilation/patch-1
Update the description of staticlib
2 parents 05ddf66 + 79364a6 commit 56a13c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/linkage.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ be ignored in favor of only building the artifacts specified by command line.
4141
the compiler will never attempt to link to `staticlib` outputs. The
4242
purpose of this output type is to create a static library containing all of
4343
the local crate's code along with all upstream dependencies. The static
44-
library is actually a `*.a` archive on linux and osx and a `*.lib` file on
45-
windows. This format is recommended for use in situations such as linking
46-
Rust code into an existing non-Rust application because it will not have
47-
dynamic dependencies on other Rust code.
44+
library is actually a `*.a` archive on linux and osx and windows(MinGW), and
45+
a `*.lib` file on windows(MSVC). This format is recommended for use in
46+
situations such as linking Rust code into an existing non-Rust application
47+
because it will not have dynamic dependencies on other Rust code.
4848

4949
* `--crate-type=cdylib`, `#[crate_type = "cdylib"]` - A dynamic system
5050
library will be produced. This is used when compiling

0 commit comments

Comments
 (0)