diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-11-08 16:37:19 +0100 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-12 14:56:22 -0800 |
| commit | 572c6986b886bec90ce21adde9d15d4b12a22909 (patch) | |
| tree | bbdf6bdd54671e8d64e7334d6f341dd1a6f2ab2d /docs/markdown | |
| parent | 351eda4dbb2eb630d20e63ed58452df559817b3c (diff) | |
| download | meson-572c6986b886bec90ce21adde9d15d4b12a22909.tar.gz | |
compilers: generalize -fembed-bitcode
Produce -Cembed-bitcode for Rust, and also disable bitcode
generation when LTO is not enabled.
Diffstat (limited to 'docs/markdown')
| -rw-r--r-- | docs/markdown/snippets/rust-lto.md | 7 |
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`. |
