-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Run dsymutil less on OSX #10198
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
Run dsymutil less on OSX #10198
Conversation
I would be thrilled to get rid of this warning! 🐤 |
I'm pretty confident that this is necessary when debug symbols are generated. |
@jdm, do you have an example that I could test with? I'm having trouble getting any debug symbols at all (even with |
@alexcrichton Why not try any of the debuginfo tests? |
It looks like debuginfo tests don't work at all on darwin. There's a few things that are all hindering it:
Here's what I was getting: https://gist.github.com/alexcrichton/7256495. Note that I created the |
Ok, I'll bust out my 10.6 machine tomorrow and see if I can spot a behaviour difference with this PR applied. |
From some small tests with C though, it looks like you're right in that the I'm still not convinced though that our usage of |
@alexcrichton If you're still having trouble with debugging, you can download the Command Line Tools for Mountain Lion (from XCode 4.6.3, not 5.0) and mount it. Rather than installing, cd into /Volumes/Command Line Tools (Mountain Lion)/Packages and then install DeveloperToolsCLI.pkg, which will drop a less-not-working version of gdb in /usr/bin. In particular, that version will be able to set breakpoints and annotate frames with their source locations. |
On 10.6 the warning does not appear when building rust programs with debug symbols enabled. So I'm pretty confident that we could solve the bit that annoys people by just not running dsymutil when no debug symbols are requested. |
I've updated to only run dsymutil in debug builds (those with |
Note that my last comment about the warning came from my memory of nearly two years ago; I'll investigate when I'm around my 10.6 machine this weekend. |
r? @jdm |
When there are no debug symbols generated, then the program just prints an annoying warning otherwise. Closes rust-lang#10198
@jdm @alexcrichton Can this merge? |
Instead of running dsymutil for all builds, this changes it to only run the program for debug builds. Closes #3495
Correctly handle inlining of async fn Fixes rust-lang#10198
Instead of running dsymutil for all builds, this changes it to only run the program for debug builds.
Closes #3495