about summary refs log tree commit diff
path: root/config.toml.example
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-03 01:19:04 +0000
committerbors <bors@rust-lang.org>2023-02-03 01:19:04 +0000
commitf02439dea78e5c2df42198c7a03e2db6002ff263 (patch)
treeba934c044e040c794ecaf64c5d0ddea604210a5c /config.toml.example
parent6c991b07403a3234dd1ec0ac973b8ef97055e605 (diff)
parent2adf26fc72f354aabd65da176eb9f8806b0d2ef2 (diff)
downloadrust-f02439dea78e5c2df42198c7a03e2db6002ff263.tar.gz
rust-f02439dea78e5c2df42198c7a03e2db6002ff263.zip
Auto merge of #107241 - clubby789:bootstrap-lto-off, r=simulacrum
Add `rust.lto=off` to bootstrap and set as compiler/library default

Closes #107202

The issue mentions `embed-bitcode=on`, but here https://github.com/rust-lang/rust/blob/c8e6a9e8b6251bbc8276cb78cabe1998deecbed7/src/bootstrap/compile.rs#L379-L381
it appears that this is always set for std stage 1+, so I'm unsure if changes are needed here.

`@rustbot` label +A-bootstrap
Diffstat (limited to 'config.toml.example')
-rw-r--r--config.toml.example3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.toml.example b/config.toml.example
index 85f058f3664..df4478bb0cb 100644
--- a/config.toml.example
+++ b/config.toml.example
@@ -662,7 +662,8 @@ changelog-seen = 2
 
 # Select LTO mode that will be used for compiling rustc. By default, thin local LTO
 # (LTO within a single crate) is used (like for any Rust crate). You can also select
-# "thin" or "fat" to apply Thin/Fat LTO to the `rustc_driver` dylib.
+# "thin" or "fat" to apply Thin/Fat LTO to the `rustc_driver` dylib, or "off" to disable
+# LTO entirely.
 #lto = "thin-local"
 
 # =============================================================================