-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[SwiftBuild] Use hostBuildTool
product type for build plugin targets
#8936
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
base: main
Are you sure you want to change the base?
Conversation
…rgets Match how macros are handled and use the `hostBuildTool` product type. rdar://155792370
@swift-ci please test |
hostBuildTool
product type for SPM build plugin targetshostBuildTool
product type for build plugin targets
@@ -39,7 +39,7 @@ extension PackagePIFProjectBuilder { | |||
let pluginTargetKeyPath = try self.project.addTarget { _ in | |||
ProjectModel.Target( | |||
id: pluginModule.pifTargetGUID, | |||
productType: .executable, | |||
productType: .hostBuildTool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: can we add an automated tests to ensure we don't regress in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I could tell, we don't really have any existing unit tests for this logic, only integration tests, unless I'm overlooking something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree adding more test coverage would be beneficial.
@pmattos Did you add any tests for the PIF generation in libSwiftPM?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I didn't... only those on the Xcode side of things.
We do have XCBuild PIF tests that we plan to port over eventually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a GitHub issue tracking the work of porting the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so Sam... but I just added one: #8980
@hamishknight Please just wait for that other PR to land, before merging this. Thanks! |
Match how macros are handled and use the
hostBuildTool
product type.rdar://155792370