Skip to content

[Job] Add some convenient APIs for SwiftPM #110

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 3 commits into from
May 23, 2020

Conversation

DougGregor
Copy link
Member

Add two APIs for Job that are helpful in SwiftPM:

  • Job.Kind.isSwiftFrontend: whether the job is executing the Swift frontend
  • Job.description: simple description of what the job is doing

SwiftPM uses this, and it's better to have the predicate here
for when we add new job kinds.
The description can be used by clients that want to print what's
going on. This will be used to replace a giant switch in SwiftPM,
and can help give a consistent presentation across build systems
that integrate the Swift driver.
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci test

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci test

@DougGregor DougGregor merged commit 890c23b into swiftlang:master May 23, 2020
@DougGregor DougGregor deleted the job-queries branch May 23, 2020 05:18
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.

1 participant