Skip to content

Pass -lld-allow-duplicate-weak for coverage on Windows #1655

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
Jul 10, 2024

Conversation

hamishknight
Copy link
Contributor

Profiling currently relies on the ability to emit duplicate weak symbols across translation units and having the linker coalesce them. Unfortunately link.exe does not support this, so require lld-link and pass -lld-allow-duplicate-weak when -profile-generate is passed. We ought to be able to remove this once coverage is changed to not rely on duplicate weak symbols, rdar://131295678 is tracking that.

rdar://129337999

@hamishknight hamishknight marked this pull request as ready for review July 9, 2024 11:57
Profiling currently relies on the ability to emit duplicate weak
symbols across translation units and having the linker coalesce them.
Unfortunately `link.exe` does not support this, so require `lld-link`
and pass `-lld-allow-duplicate-weak` when `-profile-generate` is
passed. We ought to be able to remove this once coverage is changed
to not rely on duplicate weak symbols, rdar://131295678 is tracking
that.

rdar://129337999
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 70554a4 into swiftlang:main Jul 10, 2024
3 checks passed
@hamishknight hamishknight deleted the windows-coverage branch July 10, 2024 11:58
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