Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ac26f6a

Browse files
Rollup merge of #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: b54e8ec * 2020年01月23日: restriction is lifted (without updating docs): 72aaa3a
2 parents 4ad2c99 + d3303b0 commit ac26f6a

File tree

1 file changed

+9
-6
lines changed
  • src/doc/rustc/src/codegen-options

1 file changed

+9
-6
lines changed

‎src/doc/rustc/src/codegen-options/index.md‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,16 @@ See also the [`no-prepopulate-passes`](#no-prepopulate-passes) flag.
410410

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

418-
* `y`, `yes`, `on`, `true` or no value: use dynamic linking.
419-
* `n`, `no`, `off` or `false`: use static linking (the default).
415+
There is [an internal algorithm](https://github.com/rust-lang/rust/blob/master/compiler/rustc_metadata/src/dependency_format.rs)
416+
for determining whether or not it is possible to statically or dynamically link
417+
with a dependency.
418+
419+
This flag takes one of the following values:
420+
421+
* `y`, `yes`, `on`, `true` or no value: prefer dynamic linking.
422+
* `n`, `no`, `off` or `false`: prefer static linking (the default).
420423

421424
## profile-generate
422425

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /