Skip to content

Move forwarding to non-compiler driver kinds into the planning stage #62

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

Closed
wants to merge 1 commit into from

Conversation

owenv
Copy link
Contributor

@owenv owenv commented Jan 23, 2020

This is a continuation of #58 which moves forwarding into jobs created during build planning.

var commandLine: [Job.ArgTemplate] = driverKind.usageArgs
try commandLine.append(contentsOf: parsedOptions.allArguments())
return Job(kind: .forwarding,
tool: .absolute(try toolchain.getToolPath(.swiftCompiler)),
Copy link
Member

Choose a reason for hiding this comment

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

This is an interesting choice. In many of these cases, we're not actually executing the Swift compiler, but some other tool. Should we look up that tool by name, rather than having the "tool" effectively be ignored?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is the way to go. It'll be a lot simpler once the compiler binary is renamed to swift-frontend though. That'll allow us to avoid needing to add -frontend or -modulewrap when invoking it with the right tool name. This PR isn't an important change, so I might just hold off on landing it until then.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds like I really need to finish off that compiler binary rename. Thanks for the nudge ;)

@DougGregor
Copy link
Member

@swift-ci please test

@owenv owenv closed this Jan 26, 2020
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