Uh oh!
There was an error while loading. Please reload this page.
Support extra-verbose builds - #48943
Merged
Merged
Conversation
emilyalbini
commented
Mar 12, 2018
Member
Highfive failed to assign a reviewer. |
Mark-Simulacrum
commented
Mar 13, 2018
Member
r=me after fixing tidy: |
kennytm
reviewed
Mar 13, 2018
Member
There was a problem hiding this comment.
In both Python 2 and 3, range(0, self.verbose - 1) will be empty when self.verbose - 1 is zero or negative, so the max(0, _) is unnecessary.
Member
There was a problem hiding this comment.
This can be simply self.verbosity.saturating_sub(1)
Alternatively you could use this in src/bootstrap/builder.rs to entirely get rid of this function.
// if rustbuild is invoked with N `-v`s, we pass N-1 `-v`s to cargo.for _ in1..self.verbosity{
cargo.arg("-v");}- The bootstrap crate currently passes -v to Cargo if itself invoked
with -vv. But Cargo supports -vv (to show build script output), so make
bootstrap pass that if itself invoked with -vvv. (More specifically,
pass N '-v's to Cargo if invoked with N+1 of them.)
- bootstrap.py currently tries to pass on up to two '-v's to cargo when
building bootstrap, but incorrectly ('-v' is marked as 'store_true', so
argparse stores either False or True, ignoring multiple '-v's). Fix
this, allow passing any number of '-v's, and make it consistent with
bootstrap's invocation of Cargo (i.e. subtract one from the number of
'-v's).
- Also improve bootstrap.py's config.toml 'parsing' to support arbitrary
verbosity levels, + allow command line to override it.comex
commented
Mar 16, 2018
ContributorAuthor
Updated in light of review comments. |
Mark-Simulacrum
commented
Mar 16, 2018
Member
r? @kennytm |
kennytm
commented
Mar 16, 2018
Member
@bors r+ |
bors
commented
Mar 16, 2018
Collaborator
📌 Commit ec49234 has been approved by |
alexcrichton
commented
Mar 16, 2018
Member
@bors: rollup |
kennytm added a commit
to kennytm/rust
that referenced
this pull request
Mar 17, 2018
Support extra-verbose builds
- The bootstrap crate currently passes -v to Cargo if itself invoked with -vv. But Cargo supports -vv (to show build script output), so make bootstrap pass that if itself invoked with -vvv. (More specifically, pass N '-v's to Cargo if invoked with N+1 of them.)
- bootstrap.py currently tries to pass on up to two '-v's to cargo when building bootstrap, but incorrectly ('-v' is marked as 'store_true', so argparse stores either False or True, ignoring multiple '-v's). Fix this, allow passing any number of '-v's, and make it consistent with bootstrap's invocation of Cargo (i.e. subtract one from the number of '-v's).
- Also improve bootstrap.py's config.toml 'parsing' to support arbitrary verbosity levels, + allow command line to override it.bors added a commit
that referenced
this pull request
Mar 17, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The bootstrap crate currently passes -v to Cargo if itself invoked with -vv. But Cargo supports -vv (to show build script output), so make bootstrap pass that if itself invoked with -vvv. (More specifically, pass N '-v's to Cargo if invoked with N+1 of them.)
bootstrap.py currently tries to pass on up to two '-v's to cargo when building bootstrap, but incorrectly ('-v' is marked as 'store_true', so argparse stores either False or True, ignoring multiple '-v's). Fix this, allow passing any number of '-v's, and make it consistent with bootstrap's invocation of Cargo (i.e. subtract one from the number of '-v's).
Also improve bootstrap.py's config.toml 'parsing' to support arbitrary verbosity levels, + allow command line to override it.