Skip to content

[dsymutil] Improve missing symbol warning message (#75378) #7933

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

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

JDevlieghere
Copy link

The current warning emitted by dsymutil when it can't find a symbol in an object file is worded rather poorly:

could not find object file symbol for symbol _foo

It's also lacking information that makes the warning actionable, such as the object file it's looking at. This patch rewords the warning and adds the object file path to the warning:

could not find symbol '_foo' in object file 'test.o'

rdar://119621065

(cherry picked from commit 5900014)

The current warning emitted by dsymutil when it can't find a symbol in
an object file is worded rather poorly:

```
could not find object file symbol for symbol _foo
```

It's also lacking information that makes the warning actionable, such as
the object file it's looking at. This patch rewords the warning and adds
the object file path to the warning:

```
could not find symbol '_foo' in object file 'test.o'
```

rdar://119621065

(cherry picked from commit 5900014)
@JDevlieghere
Copy link
Author

@swift-ci please test

@JDevlieghere JDevlieghere merged commit 22c7b7d into stable/20230725 Jan 9, 2024
@JDevlieghere JDevlieghere deleted the jdevlieghere/590001431b44 branch January 9, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant