Skip to content

During rustc bootstrap, make default for optimize independent of debug - #54811

Merged
bors merged 2 commits into
rust-lang:masterfrom
pnkfelix:issue-24840-separate-bootstrap-default-for-optimize-from-debug-setting
Oct 12, 2018
Merged

During rustc bootstrap, make default for optimize independent of debug#54811
bors merged 2 commits into
rust-lang:masterfrom
pnkfelix:issue-24840-separate-bootstrap-default-for-optimize-from-debug-setting

Conversation

@pnkfelix

Copy link
Copy Markdown
Contributor

It may have taken me three and a half years, but I'm following through on my "threat"

Fix#24840

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 4, 2018

@nikomatsakisnikomatsakis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the cargo.toml.example says:

# Indicates that the build should be optimized for debugging Rust. Note that
# this is typically not what you want as it takes an incredibly large amount of
# time to have a debug-mode rustc compile any code (notably libstd). If this
# value is set to `true` it will affect a number of configuration options below
# as well, if unconfigured.
#debug = false

presumably this is still true, and at least one other thing is affected? (It's not very specific about the effects of setting debug = true) It feels like this text may want to be tweaked (e.g., to suggest the possibility of setting optimize = false to get better debuginfo)

r=me once cargo.toml.example is edited to @pnkfelix's satisfaction

and to briefly touch on the theory of debugging rustc versus the
practice of such.
@pnkfelix

Copy link
Copy Markdown
ContributorAuthor

@bors r=nikomatsakis rollup

@bors

bors commented Oct 8, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 40e20e2 has been approved by nikomatsakis

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 8, 2018
emilyalbini added a commit to emilyalbini/rust that referenced this pull request Oct 9, 2018
…trap-default-for-optimize-from-debug-setting, r=nikomatsakis
During rustc bootstrap, make default for `optimize` independent of `debug`
It may have taken me three and a half years, but I'm following through on my ["threat"](rust-lang#24840 (comment))
Fixrust-lang#24840
emilyalbini added a commit to emilyalbini/rust that referenced this pull request Oct 10, 2018
…trap-default-for-optimize-from-debug-setting, r=nikomatsakis
During rustc bootstrap, make default for `optimize` independent of `debug`
It may have taken me three and a half years, but I'm following through on my ["threat"](rust-lang#24840 (comment))
Fixrust-lang#24840
Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Oct 11, 2018
…trap-default-for-optimize-from-debug-setting, r=nikomatsakis
During rustc bootstrap, make default for `optimize` independent of `debug`
It may have taken me three and a half years, but I'm following through on my ["threat"](rust-lang#24840 (comment))
Fixrust-lang#24840
kennytm added a commit to kennytm/rust that referenced this pull request Oct 12, 2018
…trap-default-for-optimize-from-debug-setting, r=nikomatsakis
During rustc bootstrap, make default for `optimize` independent of `debug`
It may have taken me three and a half years, but I'm following through on my ["threat"](rust-lang#24840 (comment))
Fixrust-lang#24840
@kennytmkennytm mentioned this pull request Oct 12, 2018
bors added a commit that referenced this pull request Oct 12, 2018
Rollup of 16 pull requests
Successful merges:
- #54755 (Documents reference equality by address (#54197))
- #54811 (During rustc bootstrap, make default for `optimize` independent of `debug`)
- #54825 (NLL says "borrowed content" instead of more precise "dereference of raw pointer")
- #54860 (Add doc comments about safest way to initialize a vector of zeros)
- #54869 (Fix mobile docs)
- #54891 (Fix tracking issue for Once::is_completed)
- #54913 (doc fix: it's auto traits that make for automatic implementations)
- #54920 (Fix handling of #[must_use] on unit and uninhabited types)
- #54932 (A handful of random string-related improvements)
- #54936 (impl Eq+Hash for TyLayout)
- #54950 (std: Synchronize global allocator on wasm32)
- #54956 ("(using ..." doesn't have the matching ")")
- #54958 (add a macro for static (compile-time) assertions)
- #54967 (Remove incorrect span for second label inner macro invocation)
- #54983 (Fix slice's benchmarks)
- #54989 (Fix spelling in the documentation to htmldocck.py)
Failed merges:
r? @ghost
@bors
bors merged commit 40e20e2 into rust-lang:masterOct 12, 2018
pnkfelix added a commit to pnkfelix/rust that referenced this pull request Nov 5, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Nov 6, 2018
…eflect-pr-54811, r=Mark-Simulacrum
Update `configure --help` (via configure.py) to reflect decoupling of debug+optimize
This should have been part of PR rust-lang#54811 (my bad).
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@pnkfelix@rust-highfive@bors@nikomatsakis