-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Ignore -C strip
on MSVC
#115120
Ignore -C strip
on MSVC
#115120
Conversation
r? @b-naber (rustbot has picked a reviewer for you, use r? to override) |
There may be cases where someone doesn't want a PDB file to be created. One way around this is to prevent a PDB file from being created when |
I don't understand what you're trying to say here, do you mean that you could prevent a PDB file from being created on MSVC by using |
Currently, the value of the Yes, MSVC doesn't actually support |
I think it would make sense to treat |
earmarking this PR, waiting on that MCP seconding @rustbot author s-waiting-on-mcp |
25d1cbe
to
cee70c9
Compare
These commits modify compiler targets. This PR changes |
split-debuginfo
for PDB generation on MSVC
This comment has been minimized.
This comment has been minimized.
cee70c9
to
45a9399
Compare
r? @bjorn3 |
This comment was marked as resolved.
This comment was marked as resolved.
45a9399
to
e94c0a4
Compare
@rustbot review |
Are you referring to
|
Yeah
I see |
6ce959f
to
694be31
Compare
Thanks for updating the PR, @icedrocket! For the record, I don't think any of the new comments are in conflict with the FCP (which only proposes to ignore |
This comment was marked as resolved.
This comment was marked as resolved.
95adb6d
to
e82f46a
Compare
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
Thanks for keeping at this, @icedrocket! @bors r rollup=never |
☀️ Test successful - checks-actions |
Finished benchmarking commit (7f2fc33): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 671.419s -> 670.936s (-0.07%) |
Since this is in 1.79.0 already, should we revert this PR in Cargo? |
…trip, r=weihanglo" This reverts commit fa619a9, reversing changes made to 1f6857d. See also <rust-lang/rust#115120>
Revert #13630 as rustc ignores `-C strip` on MSVC This reverts commit fa619a9, reversing changes made to 1f6857d. See also <rust-lang/rust#115120>.
tl;dr - Define
-Cstrip
to only ever affect the binary; no other build artifacts.This is necessary to improve cross-platform behavior consistency: if someone wanted debug information to be contained only in separate files on all platforms, they would set
-Cstrip=symbols
and-Csplit-debuginfo=packed
, but this would result in no PDB files on MSVC.Resolves #114215