Skip to content

Forward -print-target-info to the frontend, begin refactoring planning for simple driver invocations #58

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
Jan 19, 2020

Conversation

owenv
Copy link
Contributor

@owenv owenv commented Jan 11, 2020

The -print-target-info implementation itself is pretty straightforward. The refactor is a little more interesting, I pulled the planBuild call out of Driver.run. Now, all clients are expected to call planBuild for a list of jobs they can hand off to Driver.run or schedule themselves. I also pulled -version and -print-target-info handling out of run and into the build planning stage. This gives clients more control over executing them in case they want to do something like capture the output. It's not yet clear if we want to do something similar for printing help or forwarding to swift-indent/swift-autolink-extract, I've left that logic alone for now.

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this approach, and I do think it makes sense to pull out -help into a separate Job the same way.

@DougGregor
Copy link
Member

@swift-ci please test

@DougGregor DougGregor merged commit 712b40c into swiftlang:master Jan 19, 2020
fengjixuchui referenced this pull request in fengjixuchui/swift-driver Jan 19, 2020
Merge pull request apple#58 from owenv/print_target_info
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.

2 participants