Skip to content
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 support for load-pass-plugin option #1472

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

antoniofrighetto
Copy link

Options.swift has been regenerated so as to include load-pass-plugin option as well.

Frontend implementation at apple/swift#68985.

@antoniofrighetto
Copy link
Author

cc/ @artemcm, @lhames, @DougGregor.

@@ -435,6 +435,10 @@ extension Driver {
commandLine.appendFlag(.pluginPath)
commandLine.appendPath(pluginPathRoot.localPluginPath)
}

if let passPluginPath = parsedOptions.getLastArgument(.loadPassPluginEQ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please also guard this with:

isFrontendArgSupported(.loadPassPluginEQ)

Copy link
Author

Choose a reason for hiding this comment

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

Guarded, thanks!

@artemcm
Copy link
Contributor

artemcm commented Oct 23, 2023

Please add a simple test that the flag is propagated to the expected swift-frontend tasks.

@antoniofrighetto
Copy link
Author

Rebased to main, and added a test forwarding the options to the frontend, thanks!

@antoniofrighetto
Copy link
Author

Rebased to main, solved conflicts.

`Options.swift` has been regenerated so as to
include `load-pass-plugin` option as well.
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.

None yet

2 participants