Skip to content
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

No dSYM symlink for examples #6889

Closed
bjorn3 opened this issue Apr 29, 2019 · 0 comments · Fixed by #6891
Closed

No dSYM symlink for examples #6889

bjorn3 opened this issue Apr 29, 2019 · 0 comments · Fixed by #6891
Assignees
Labels
O-macos OS: macOS

Comments

@bjorn3
Copy link
Member

bjorn3 commented Apr 29, 2019

Problem

Cargo doesnt create dSYM symlinks for examples.

Steps

  1. Build an example on macOS.
  2. $ ls -l target/debug/examples total 32416
    -rwxr-xr-x 2 bjorn staff 4151148 27 apr 17:51 find-debug
    -rw-r--r-- 1 bjorn staff 197 20 apr 16:43 find-debug.d
    -rwxr-xr-x 1 bjorn staff 4124732 20 apr 17:09 find_debug-1180f451572ec105
    -rw-r--r-- 1 bjorn staff 234 20 apr 17:09 find_debug-1180f451572ec105.d
    drwxr-xr-x 3 bjorn staff 96 20 apr 16:09 find_debug-1180f451572ec105.dSYM
    
    Note the missing find_debug.dSYM.

Possible Solution(s)

Notes

Output of cargo version:

This is using the cargo for rustc 1.34.1

@ehuss ehuss self-assigned this Apr 29, 2019
@ehuss ehuss added the O-macos OS: macOS label Apr 29, 2019
bors added a commit that referenced this issue Apr 30, 2019
Symlink dSYM on macOS example binaries.

Examples previously ended up with a layout such as:

```
target/debug/examples/ex1
target/debug/examples/ex1.d
target/debug/examples/ex1-966e505ad4696130
target/debug/examples/ex1-966e505ad4696130.d
target/debug/examples/ex1-966e505ad4696130.dSYM/…
```

If you attempt to run lldb on the executable without the hash (`target/debug/examples/ex1`), then symbols could not be found. This PR solves this by creating a symlink from `ex1.dSYM -> ex1-966e505ad4696130.dSYM`.

Closes #6889
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-macos OS: macOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants