Skip to content

Fix FastSourceLineResolver link errors on MinGW - #25

Merged
slipher merged 1 commit into
masterfrom
slipher/resolver-again
Jul 25, 2026
Merged

Fix FastSourceLineResolver link errors on MinGW#25
slipher merged 1 commit into
masterfrom
slipher/resolver-again

Conversation

@slipher

@slipher slipher commented Jul 25, 2026

Copy link
Copy Markdown
Member

This is a redo of #23. It turns out various unit test binaries suffer from the same linking issue so I fixed the code this time instead of spamming the spurious dependency everywhere.

module_factory.h unnecessarily depended on BasicSourceLineResolver and FastSourceLineResolver. Fix this by moving the derived factory classes to {basic,fast}_source_line_resolver.cc. The MinGW linker is more picky and complains about the unmet dependency of an unused class.

Reverts commit d54e2fd which was a previous fix for one of the instances of the problem.

module_factory.h unnecessarily depended on BasicSourceLineResolver and
FastSourceLineResolver. Fix this by moving the derived factory classes
to {basic,fast}_source_line_resolver.cc. The MinGW linker is more picky
and complains about the unmet dependency of an unused class.

This also reverts commit d54e2fd
which was a previous fix for one of the instances of the problem.
@slipher slipher mentioned this pull request Jul 25, 2026

@illwieckz illwieckz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@slipher
slipher merged commit ed5081c into master Jul 25, 2026
@slipher
slipher deleted the slipher/resolver-again branch July 25, 2026 21:02
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.

2 participants