Skip to content

[PCH][OutputFileMap] GeneratePCH output should use single output entry #1832

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
Mar 7, 2025

Conversation

cachemeifyoucan
Copy link
Contributor

The build system has been emitting the output path of generating PCH job in the module level entry in the output file map, while swift-driver is expecting the entry in an entry that accosiated with imported bridging header.

This patch unifies the behavior by picking the implementation of the swift-build, where it is a module level entry. This works better for future when bridging header can be chained, thus creating PCH job even there isn't a imported objc header explicitly provided.

rdar://146395316

@cachemeifyoucan cachemeifyoucan requested review from owenv and artemcm March 6, 2025 18:50
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

The build system has been emitting the output path of generating PCH job
in the module level entry in the output file map, while swift-driver is
expecting the entry in an entry that accosiated with imported bridging
header.

This patch unifies the behavior by picking the implementation of the
swift-build, where it is a module level entry. This works better for
future when bridging header can be chained, thus creating PCH job even
there isn't a imported objc header explicitly provided.

rdar://146395316
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test windows platform

@cachemeifyoucan cachemeifyoucan merged commit fef4d97 into swiftlang:main Mar 7, 2025
3 checks passed
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.

3 participants