summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/rust-lto.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/rust-lto.md')
-rw-r--r--docs/markdown/snippets/rust-lto.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/snippets/rust-lto.md b/docs/markdown/snippets/rust-lto.md
new file mode 100644
index 000000000..78a66cd2e
--- /dev/null
+++ b/docs/markdown/snippets/rust-lto.md
@@ -0,0 +1,7 @@
+## `rustc` will receive `-C embed-bitcode=no` and `-C lto` command line options
+
+With this release, Meson passes command line arguments to `rustc` to
+enable LTO when the `b_lto` built-in option is set to true. As an
+optimization, Meson also passes `-C embed-bitcode=no` when LTO is
+disabled; note that this is incompatible with passing `-C lto` via
+`rust_args`.