Skip to content

Commit

Permalink
Unrolled build for rust-lang#127908
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#127908 - fasterthanlime:patch-1, r=jieyouxu

Update extern linking documentation

In particular, remove the note saying cdylibs can't link against dylibs — that hasn't been true for over four years.

  * 2019-11-07: note is written: rust-lang@b54e8ec
  * 2020-01-23: restriction is lifted (without updating docs): rust-lang@72aaa3a
  • Loading branch information
rust-timer authored Jul 18, 2024
2 parents 5753b30 + d3303b0 commit 63e5e22
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/doc/rustc/src/codegen-options/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,16 @@ See also the [`no-prepopulate-passes`](#no-prepopulate-passes) flag.

By default, `rustc` prefers to statically link dependencies. This option will
indicate that dynamic linking should be used if possible if both a static and
dynamic versions of a library are available. There is an internal algorithm
for determining whether or not it is possible to statically or dynamically
link with a dependency. For example, `cdylib` crate types may only use static
linkage. This flag takes one of the following values:
dynamic versions of a library are available.

* `y`, `yes`, `on`, `true` or no value: use dynamic linking.
* `n`, `no`, `off` or `false`: use static linking (the default).
There is [an internal algorithm](https://github.com/rust-lang/rust/blob/master/compiler/rustc_metadata/src/dependency_format.rs)
for determining whether or not it is possible to statically or dynamically link
with a dependency.

This flag takes one of the following values:

* `y`, `yes`, `on`, `true` or no value: prefer dynamic linking.
* `n`, `no`, `off` or `false`: prefer static linking (the default).

## profile-generate

Expand Down

0 comments on commit 63e5e22

Please sign in to comment.