Skip to content

Commit b5e4745

Browse files
authored
Rollup merge of #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 0deb522 + 4268872 commit b5e4745

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/bootstrap/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ struct Build {
148148
python: Option<String>,
149149
full_bootstrap: Option<bool>,
150150
extended: Option<bool>,
151+
verbose: Option<usize>,
151152
}
152153

153154
/// TOML representation of various global install decisions.
@@ -292,6 +293,7 @@ impl Config {
292293
set(&mut config.vendor, build.vendor);
293294
set(&mut config.full_bootstrap, build.full_bootstrap);
294295
set(&mut config.extended, build.extended);
296+
set(&mut config.verbose, build.verbose);
295297

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

src/bootstrap/config.toml.example

Lines changed: 3 additions & 0 deletions
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)