about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2020-07-29 11:37:33 -0700
committerJosh Triplett <josh@joshtriplett.org>2020-08-26 14:55:21 -0700
commit30b7dac745b1555cd96f41977f7d24435cbe7fa2 (patch)
tree04b874ce829d9a8f91f4f13c7cf6f9b47e5407d7 /src/bootstrap
parent48717b6f3ce661d2a0d64f7bdfdfb5fd3484ee5b (diff)
Set ninja=true by default
Ninja substantially improves LLVM build time. On a 96-way system, using
Make took 248s, and using Ninja took 161s, a 35% improvement.

We already require a variety of tools to build Rust. If someone wants to
build without Ninja (for instance, to minimize the set of packages
required to bootstrap a new target), they can easily set `ninja=false`
in `config.toml`.  Our defaults should help people build Rust (and LLVM)
faster, to speed up development.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/config.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs
index 8b8b01b1153..f549de6570f 100644
--- a/src/bootstrap/config.rs
+++ b/src/bootstrap/config.rs
@@ -450,6 +450,7 @@ impl Config {
     pub fn default_opts() -> Config {
         let mut config = Config::default();
         config.llvm_optimize = true;
+        config.ninja = true;
         config.llvm_version_check = true;
         config.backtrace = true;
         config.rust_optimize = true;