diff options
| author | Tyler Mandry <tmandry@google.com> | 2023-09-27 17:12:40 -0700 |
|---|---|---|
| committer | Tyler Mandry <tmandry@google.com> | 2023-09-27 17:21:38 -0700 |
| commit | f4ed73119ae6b9af4b6722954265ed617d066d2e (patch) | |
| tree | de407edabc177d93dd6235bff145573f0ee77c04 | |
| parent | 5899a80ae60ec0959dcd4a7eca6eb02ce2866632 (diff) | |
| download | rust-f4ed73119ae6b9af4b6722954265ed617d066d2e.tar.gz rust-f4ed73119ae6b9af4b6722954265ed617d066d2e.zip | |
Document -Zlink-native-libraries
Originally added in #70095.
| -rw-r--r-- | src/doc/unstable-book/src/compiler-flags/link-native-libraries.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/link-native-libraries.md b/src/doc/unstable-book/src/compiler-flags/link-native-libraries.md new file mode 100644 index 00000000000..a1fcb631c68 --- /dev/null +++ b/src/doc/unstable-book/src/compiler-flags/link-native-libraries.md @@ -0,0 +1,8 @@ +# `link-native-libraries` + +This option allows ignoring libraries specified in `#[link]` attributes instead of passing them to the linker. +This can be useful in build systems that manage native libraries themselves and pass them manually, +e.g. with `-Clink-arg`. + +- `yes` - Pass native libraries to the linker. Default. +- `no` - Don't pass native libraries to the linker. |
