From f4ed73119ae6b9af4b6722954265ed617d066d2e Mon Sep 17 00:00:00 2001 From: Tyler Mandry Date: Wed, 27 Sep 2023 17:12:40 -0700 Subject: [PATCH] Document -Zlink-native-libraries Originally added in #70095. --- .../src/compiler-flags/link-native-libraries.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/doc/unstable-book/src/compiler-flags/link-native-libraries.md 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 0000000000000..a1fcb631c6826 --- /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.