-
Notifications
You must be signed in to change notification settings - Fork 13.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
--enable-debuginfo
does not enable LLVM debug info
#31033
Comments
What you suggest to do if I need rust debug info, but not need LLVM debug info? |
Sort of related #24840 |
For future travelers, I came here after reading @nnethercote's blog post about perf testing and profiling: https://blog.mozilla.org/nnethercote/2016/10/14/how-to-speed-up-the-rust-compiler/ At the end he mentioned treating LLVM like a black box because he didn't yet know how to enable debuginfo in LLVM itself. Well, it looks like @nagisa's comment resolves that mystery. Except it looks like the option is actually called |
That option sounds like it disables optimizations, though... |
@Mark-Simulacrum Indeed. And in fact, you can Perhaps bundling up LLVM debuginfo with LLVM de-optimization is no good. Maybe |
In |
Should we file a new issue to make it easier to build LLVM with optimizations and debuginfo? |
@nnethercote I intended to issue a PR referring here, but I'll defer to your judgment. |
Oh, if you have a PR there's no need for a separate issue. Thank you for doing it! |
Oh, I think I just misunderstood your intention, given the title of this issue is slightly broader in intent than the conclusion I came to with my PR. Well, I'm not sure how to dispose of the two issues. Close this one, maybe? |
Add llvm debuginfo configure option CC @nnethercote @Mark-Simulacrum We add a new configure option, `--enable-llvm-debuginfo`, to do exactly what you'd think. Re: #31033 Fixes #37738
Yeah, that PR seems good enough of a fix. |
According to this code we only enable LLVM debug-info when
--disable-llvm-optimize
is set. We should also enable LLVM debug info when--enable-debuginfo
is set.The text was updated successfully, but these errors were encountered: