Skip to content

Commit 9f268de

Browse files
committed
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
1 parent 41c1382 commit 9f268de

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

config.toml.example

+3-7
Original file line numberDiff line numberDiff line change
@@ -306,16 +306,12 @@
306306
#
307307
#debug = false
308308

309-
# This will make your build more parallel; it costs a bit of runtime
310-
# performance perhaps (less inlining) but it's worth it.
311-
#
312309
# Number of codegen units to use for each compiler invocation. A value of 0
313310
# means "the number of cores on this machine", and 1+ is passed through to the
314311
# compiler.
315312
#
316-
# Defaults: the Cargo defaults, 256 with incremental and 16 without
317-
# https://doc.rust-lang.org/cargo/reference/profiles.html#codegen-units
318-
#codegen-units = 1
313+
# Uses the Cargo defaults: https://doc.rust-lang.org/cargo/reference/profiles.html#codegen-units
314+
#codegen-units = if incremental { 256 } else { 16 }
319315

320316
# Sets the number of codegen units to build the standard library with,
321317
# regardless of what the codegen-unit setting for the rest of the compiler is.
@@ -398,7 +394,7 @@
398394
# desired in distributions, for example.
399395
#rpath = true
400396

401-
# Emits extra output from the tests to debug issues in the test harness itself.
397+
# Prints each test name as it is executed, to help debug issues in the test harness itself.
402398
#verbose-tests = false
403399

404400
# Flag indicating whether tests are compiled with optimizations (the -O flag).

0 commit comments

Comments
 (0)