Skip to content

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

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