Skip to content

[swift] Always emit pch output path in OutputFileMap #261

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

Conversation

cachemeifyoucan
Copy link
Contributor

@cachemeifyoucan cachemeifyoucan commented Mar 6, 2025

Always emit pch output path in OutputfileMap to support possible chained bridging header support. In the chained bridging header support mode, swift-driver can plan a generate PCH job even when there are no explicit bridging header is passed on command-line, and it needs the path in output file map to write the PCH file into desired location. Since having additional unused entries in the output file map is not an issue, just always generate output path for PCH in the output file map.

rdar://146409233

Always emit pch output path in OutputfileMap to support possible chained
bridging header support. In the chained bridging header support mode,
swift-driver can plan a generate PCH job even when there are no explicit
bridging header is passed on command-line, and it needs the path in
output file map to write the PCH file into desired location. Since
having additional unused entries in the output file map is not an issue,
just always generate output path for PCH in the output file map.

rdar://146409233
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan cachemeifyoucan merged commit 8167cc6 into swiftlang:main Mar 6, 2025
3 checks passed
cachemeifyoucan added a commit to cachemeifyoucan/swift-build that referenced this pull request Mar 8, 2025
After swift-driver #1832 and swift-build swiftlang#261, swift-build fully
determines the pch output path. Adjust test to match both new
and old behavior (with or without new swift-driver change).
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