-
Notifications
You must be signed in to change notification settings - Fork 8
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
Improvements #12
Improvements #12
Conversation
Travis is green |
Ping @philipc |
@luser Can you review this please? I know nothing about macos. My only comment is that I'm surprised you need to hard-code cargo-specific paths. Does lldb have similar problems finding the debug info? |
While not technically necessary it is much faster on macOS and the only way on other OSes. Spotlight sometimes only finds a new dSYM file after ~1min.
I dont know. |
Can you try lldb? I assume it would take ~1min too? If not, it's worth determining how it finds the debug info. |
Not today.
It seems to use DebugSymbols.framework: https://opensource.apple.com/source/lldb/lldb-310.2.36/www/symbols.html |
I was one version behind on stable but with cargo 1.33.0 cargo seems to put a symlink to the
Given that, do you need the cargo special case? I'd rather not have such specific workarounds unless we really need them. |
Otherwise these changes look good! Sorry, I didn't mean to leave an entirely negative comment. :) |
I hadn't noticed that symlink. Is it also generated for examples? (Can't check until tomorrow) |
I can't find them for latest stable:
Maybe it regressed with latest rustc? |
I looked into it but it's an undocumented private framework, so it didn't seem worthwhile. I'm 99% sure it just calls into these same Spotlight APIs under the hood anyway. |
I think this is just a difference in cargo's behavior between crate bins and example bins. I think you should open a cargo issue on this if one doesn't already exist. |
Filled rust-lang/cargo#6889 |
rust-lang/cargo#6889 has been fixed. Should this PR wait for it to hit stable, or merge as is and remove the cargo specific parts when the fix hits stable? |
Does it work if you only look in the same directory as the executable, instead of going up to the parent and then back down to examples and deps? |
This has been sitting open long enough, and it's at least an improvement so let's merge and perfect in followups. |
dSYM
's intarget/
when object file is in there too. (Fixes Finding dSYM file on macOS can be very slow #11)Edit: I fixed clippy warnings too.