From 2adf26fc72f354aabd65da176eb9f8806b0d2ef2 Mon Sep 17 00:00:00 2001 From: clubby789 Date: Mon, 23 Jan 2023 21:21:35 +0000 Subject: Add `rust.lto=off` to bootstrap --- src/bootstrap/defaults/config.compiler.toml | 2 ++ src/bootstrap/defaults/config.library.toml | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/bootstrap/defaults') diff --git a/src/bootstrap/defaults/config.compiler.toml b/src/bootstrap/defaults/config.compiler.toml index 2f4ccb825c4..b98b13119e8 100644 --- a/src/bootstrap/defaults/config.compiler.toml +++ b/src/bootstrap/defaults/config.compiler.toml @@ -12,6 +12,8 @@ debug-logging = true incremental = true # Print backtrace on internal compiler errors during bootstrap backtrace-on-ice = true +# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown. +lto = "off" [llvm] # Will download LLVM from CI if available on your platform. diff --git a/src/bootstrap/defaults/config.library.toml b/src/bootstrap/defaults/config.library.toml index 7bc054d3a49..f362c4111f1 100644 --- a/src/bootstrap/defaults/config.library.toml +++ b/src/bootstrap/defaults/config.library.toml @@ -8,6 +8,8 @@ bench-stage = 0 [rust] # This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. incremental = true +# Make the compiler and standard library faster to build, at the expense of a ~20% runtime slowdown. +lto = "off" [llvm] # Will download LLVM from CI if available on your platform. -- cgit 1.4.1-3-g733a5