-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resync config.toml and suggest better settings #795
Conversation
src/building/how-to-build-and-run.md
Outdated
# Emits extraneous output from tests to ensure that failures of the test | ||
# harness are debuggable just from logfiles. | ||
verbose-tests = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Emits extraneous output from tests to ensure that failures of the test | |
# harness are debuggable just from logfiles. | |
verbose-tests = true | |
# Emits extra output from tests so test failures are debuggable just from logfiles. | |
verbose-tests = true |
Extraneous means it's not useful or irrelevant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jyn514 👍 but consider changing this on rust-lang/rust, I've just copied what it's there already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change doesn't seem right, specifically "test harness" refers to the code running the tests, rather than the tests themselves. And it is extraneous for the common case of e.g. libtest
not crashing.
EDIT: found the Rust PR, leaving comment there too.
39e14f4
to
818d97d
Compare
818d97d
to
d4f978d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
bootstrap: Improve wording on docs for `verbose-tests` From rust-lang/rustc-dev-guide#795 (comment) r? @spastorino
# This will make your build more parallel; it costs a bit of runtime | ||
# performance perhaps (less inlining) but it's worth it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this from config.toml.example
? It looks like these two lines explained why the = 0
value was set, and this was lost.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is from config.toml.example
. I'll add it back in rust-lang/rust#76141.
# Emits extra output from tests so test failures are debuggable just from logfiles. | ||
verbose-tests = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this added? The default is that failures are listed at the end, without noisy output while running the tests.
EDIT: looks like the purpose of this was misunderstood? (see my other comments about verbose-tests
)
# Whether to always use incremental compilation when building rustc | ||
incremental = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Cargo documentation, the incremental default for codegen-units
is 256, which makes codegen-units = 0
unnecessary/undesirable (unless you're compiling Rust on a machine with more than 256 hardware cores/threads, heh).
So my understanding is that when adding incremental = true
, we also need to remove codegen-units = 0
. cc @Mark-Simulacrum
- `verbose-tests` is for debugging the test harness, not the tests themselves. See also rust-lang/rust#76141 - `codegen-units` defaults to `256` whenever `incremental = true`. So there's no need to explicitly set it to `0` if we already recommend incremental. See also rust-lang#795 (comment).
- `verbose-tests` is for debugging the test harness, not the tests themselves. See also rust-lang/rust#76141 - `codegen-units` defaults to `256` whenever `incremental = true`. So there's no need to explicitly set it to `0` if we already recommend incremental. See also rust-lang#795 (comment).
- `verbose-tests` is for debugging the test harness, not the tests themselves. See also rust-lang/rust#76141 - `codegen-units` defaults to `256` whenever `incremental = true`. So there's no need to explicitly set it to `0` if we already recommend incremental. See also #795 (comment).
Address review comments about config.toml from rustc-dev-guide PR This info was lost in rust-lang#74334. See also rust-lang/rustc-dev-guide#795 (review). r? @Mark-Simulacrum or @eddyb
No description provided.