-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
rustbuild: Simplify debuginfo configuration #60568
Conversation
Questions:
|
With the exception of rustbuild itself (which is compiled by
Compiletest doesn't use Cargo internally, so no on that; it itself will be built via
I would probably have it partner with rustc instead of tools, but I don't think it matters that much.
I suspect that this could be the reason, but would need to investigate to be able to answer for sure. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Updated. @bors rollup=never |
@bors r+ |
📌 Commit 53fcac07b93ab3d4724e8801b92af3fe4868a708 has been approved by |
⌛ Testing commit 53fcac07b93ab3d4724e8801b92af3fe4868a708 with merge d5f86b8e7f1fb04f1d0dcaeca5ab2cbefd2c93be... |
💔 Test failed - checks-travis |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Looks like we're generating a lot larger wasm files than before; presumably this is due to debuginfo... |
⌛ Testing commit 53fcac07b93ab3d4724e8801b92af3fe4868a708 with merge 808576e0206ce070428486d45a171c9da21e087c... |
💔 Test failed - checks-travis |
I pushed one more commit untying From my experience of working on this branch
Based on that, I would expect having debuginfo-level = 1
debuginfo-level-tests = 0 in my So, I realized that the old behavior of not enabling |
I think this looks good to me. I'm not confident about the rustdoc special case removal, but it does seem like a reasonable simplification. It can be readded later anyway if we decide it's necessary. @bors r+ |
📌 Commit f5ae0b4cc33a13249fb56329e54ed036110ae154 has been approved by |
@bors r- Totally forgot I had left a review comment. r=me with it fixed though. |
@bors r=Mark-Simulacrum |
📌 Commit 780e406 has been approved by |
rustbuild: Simplify debuginfo configuration This is supposed to fix #52179 This PR introduces one option `debuginfo-level` replacing `debuginfo` and `debuginfo-lines` and corresponding to the `rustc` flag `-C debuginfo=N`. `debuginfo-level` serves as a default for all Rust code built during bootstrap, but it can be overridden for specific subsets of code using finer-grained options `debuginfo-level-{rustc,std,tools,tests}` replacing `debuginfo-only-std`, `debuginfo-tools` and `debuginfo-tests`.
☀️ Test successful - checks-travis, status-appveyor |
https://rust-lang.github.io/rustc-guide/how-to-build-and-run.html needs to be updated after this. |
This is supposed to fix #52179
This PR introduces one option
debuginfo-level
replacingdebuginfo
anddebuginfo-lines
and corresponding to therustc
flag-C debuginfo=N
.debuginfo-level
serves as a default for all Rust code built during bootstrap, but it can be overridden for specific subsets of code using finer-grained optionsdebuginfo-level-{rustc,std,tools,tests}
replacingdebuginfo-only-std
,debuginfo-tools
anddebuginfo-tests
.