From 9f268de644df40c0ea9b323c475772d0ec2dc5b4 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Mon, 31 Aug 2020 00:37:50 -0400 Subject: [PATCH] Address review comments - Use prettier syntax for codegen-units defaults - Remove comment about parallelism that only made sense for specific values of codegen-units - Be more specific about what `verbose-tests` does --- config.toml.example | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/config.toml.example b/config.toml.example index 2aba9445084..0956dd82ad9 100644 --- a/config.toml.example +++ b/config.toml.example @@ -306,16 +306,12 @@ # #debug = false -# This will make your build more parallel; it costs a bit of runtime -# performance perhaps (less inlining) but it's worth it. -# # Number of codegen units to use for each compiler invocation. A value of 0 # means "the number of cores on this machine", and 1+ is passed through to the # compiler. # -# Defaults: the Cargo defaults, 256 with incremental and 16 without -# https://doc.rust-lang.org/cargo/reference/profiles.html#codegen-units -#codegen-units = 1 +# Uses the Cargo defaults: https://doc.rust-lang.org/cargo/reference/profiles.html#codegen-units +#codegen-units = if incremental { 256 } else { 16 } # Sets the number of codegen units to build the standard library with, # regardless of what the codegen-unit setting for the rest of the compiler is. @@ -398,7 +394,7 @@ # desired in distributions, for example. #rpath = true -# Emits extra output from the tests to debug issues in the test harness itself. +# Prints each test name as it is executed, to help debug issues in the test harness itself. #verbose-tests = false # Flag indicating whether tests are compiled with optimizations (the -O flag).