-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add executorFactory option to package manifest. #8443
base: main
Are you sure you want to change the base?
Conversation
This lets you specify which executor factory to use in the `Package.swift`. rdar://148430450
@swift-ci Please smoke test |
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.
What's the corresponding Swift Evolution proposal/pitch for this? IIUC changes to PackageDescription
public API are usually required to be pitched before merging.
Yup, a quick pitch should be fine just to let the community know. Also some tests :). |
Pitch is here:
Indeed, I'd like to add some tests, though I find the SwiftPM repo hard to navigate so it would be useful if someone could point me in the right place(s) for that. |
You could modify the existing |
@al45tair Please add a new build setting in Swift Build for this as well. When using the Swift Build build engine backend we're not going to be using OTHER_SWIFT_FLAGS to pass down these sort of things. |
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.
chore (blocking): Would it be possible to add an automated tests that verify, at a minimum:
- A valid value is passed for the executor factory
- an invalid value is passed to the executor Factory
- the executor factory is not specified
This will ensure we the behaviour works as intended and that it does not regress
It doesn't make sense to test all of that here. Tests of compiler options belong in the compiler tests. SwiftPM might reasonably test that the option is passed through to the compiler — it shouldn't be testing compiler behaviour. |
(I'll add to that that I think it would make a lot of sense if SwiftPM and Swift Build picked up options automatically from the |
Add some tests of the executorFactory setting. rdar://148430450
@swift-ci Please test |
This lets you specify which executor factory to use in the
Package.swift
.rdar://148430450