Skip to content
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

[SR-13235] libSwiftPM doesn't vend a ClangTarget's module map generation info #4523

Closed
abertelrud opened this issue Jul 16, 2020 · 2 comments
Assignees
Labels

Comments

@abertelrud
Copy link
Contributor

Previous ID SR-13235
Radar rdar://65678318
Original Reporter @abertelrud
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee @abertelrud
Priority Medium

md5: 66c50825fc81ac45d302519a2da607b8

Issue Description:

libSwiftPM vends various information to clients such as IDEs, and for a ClangTarget, this include such things as the path of the `include` (public-headers) directory. It does not, however, include any information about the module map type of the ClangTarget when a custom module map isn't provided.

Instead, this is something that the BuildPlan figures out right before building, but this means that IDEs that use libSwiftPM have to replicate the heuristics for what kind of module map to generate, if any.

SwiftPM should determine this when creating the ClangTarget so it can be used consistently by both SwiftPM and clients that use libSwiftPM.

@abertelrud
Copy link
Contributor Author

Looks like this is causing https://bugs.swift.org/browse/SR-12009.

@swift-ci
Copy link
Contributor

Comment by Jason Wray (JIRA)

#2838

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants