about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2022-09-29 16:31:03 +0200
committerJakub Beránek <berykubik@gmail.com>2022-10-23 13:48:03 +0200
commitc5c86806c859048f9bfdbb92b30401ef4f3a3346 (patch)
tree80bd0586eb361e26c5f7f826ecc4f39f3eec9ef7 /src/doc
parentcba16819a1aa2f99c861eba907847db39fea06c5 (diff)
Introduce dedicated `-Zdylib-lto` flag for enabling LTO on `dylib`s
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/unstable-book/src/compiler-flags/dylib-lto.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/dylib-lto.md b/src/doc/unstable-book/src/compiler-flags/dylib-lto.md
new file mode 100644
index 00000000000..f69ea334f5a
--- /dev/null
+++ b/src/doc/unstable-book/src/compiler-flags/dylib-lto.md
@@ -0,0 +1,4 @@
+## `dylib-lto`
+
+This option enables using LTO for the `dylib` crate type. This is currently only used for compiling
+`rustc` itself (more specifically, the `librustc_driver` dylib).