Skip to content

Commit 26efb21

Browse files
authored
Rollup merge of rust-lang#39587 - Keruspe:master, r=alexcrichton
rustbuild: support setting verbosity in config.toml Most if not all the configuration is settable trhough config.toml but the verbosity isn't yet. This avoids having to pass -v to x.py on each command if you want verbosity to be always on.
2 parents f045a41 + 4268872 commit 26efb21

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/bootstrap/config.rs

+2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ struct Build {
149149
python: Option<String>,
150150
full_bootstrap: Option<bool>,
151151
extended: Option<bool>,
152+
verbose: Option<usize>,
152153
}
153154

154155
/// TOML representation of various global install decisions.
@@ -294,6 +295,7 @@ impl Config {
294295
set(&mut config.vendor, build.vendor);
295296
set(&mut config.full_bootstrap, build.full_bootstrap);
296297
set(&mut config.extended, build.extended);
298+
set(&mut config.verbose, build.verbose);
297299

298300
if let Some(ref install) = toml.install {
299301
config.prefix = install.prefix.clone().map(PathBuf::from);

src/bootstrap/config.toml.example

+3
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@
124124
# disabled by default.
125125
#extended = false
126126

127+
# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose
128+
#verbose = 0
129+
127130
# =============================================================================
128131
# General install configuration options
129132
# =============================================================================

0 commit comments

Comments
 (0)