-
Notifications
You must be signed in to change notification settings - Fork 13.4k
debuginfo: Instruct MSVC linker to generate PDB file if debuginfo is enabled #26993
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
Conversation
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
Oops, trailing whitespace in there. I'll fix it asap. |
03a4948
to
6c70127
Compare
OK, should be fixed now. |
Is there a downside to just always passing |
Passing |
|
This PR will enable RUSTC to generate PDB debuginfo files when targeting the MSVC toolchain. Mind that these are not full featured PDB files -- they just contain line tables, so you can get proper backtraces and step through your code, but variable values can't be inspected. We are just levering (LLVM's current support)[http://clang.llvm.org/docs/MSVCCompatibility.html] for creating Windows debuginfo. When LLVM's support gets better, we should benefit from that too without much effort. I also wanted to include some kind of auto test with this PR but I could not get the `rmake` tests to work properly when targeting MSVC. EDIT: Closes #19533
This PR will enable RUSTC to generate PDB debuginfo files when targeting the MSVC toolchain. Mind that these are not full featured PDB files -- they just contain line tables, so you can get proper backtraces and step through your code, but variable values can't be inspected. We are just levering (LLVM's current support)[http://clang.llvm.org/docs/MSVCCompatibility.html] for creating Windows debuginfo. When LLVM's support gets better, we should benefit from that too without much effort.
I also wanted to include some kind of auto test with this PR but I could not get the
rmake
tests to work properly when targeting MSVC.EDIT:
Closes #19533