Skip to content

Add support for load-pass-plugin option #1472

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 1 commit into from
Jan 14, 2025

Conversation

antoniofrighetto
Copy link
Contributor

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

Frontend implementation at swiftlang/swift#68985.

@antoniofrighetto
Copy link
Contributor 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
Contributor 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 antoniofrighetto force-pushed the feature/load-pass-plugin branch from d41ec65 to 916a707 Compare October 25, 2023 21:52
@antoniofrighetto
Copy link
Contributor Author

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

@antoniofrighetto antoniofrighetto force-pushed the feature/load-pass-plugin branch from 916a707 to 3128d28 Compare April 30, 2024 19:07
@antoniofrighetto
Copy link
Contributor Author

Rebased to main, solved conflicts.

@antoniofrighetto antoniofrighetto force-pushed the feature/load-pass-plugin branch from 3128d28 to b6bb0f2 Compare May 2, 2024 06:51
@weliveindetail
Copy link
Member

Ping

@artemcm Is this ready to land? The test in swiftlang/swift#68985 (comment) was passing!

@artemcm
Copy link
Contributor

artemcm commented Oct 8, 2024

Ping

@artemcm Is this ready to land? The test in swiftlang/swift#68985 (comment) was passing!

Looks like this needs to resolve a merge conflict first.

@antoniofrighetto antoniofrighetto force-pushed the feature/load-pass-plugin branch from b6bb0f2 to 1e84ca9 Compare October 8, 2024 18:20
@artemcm
Copy link
Contributor

artemcm commented Oct 8, 2024

@swift-ci test

@weliveindetail
Copy link
Member

Seems like CI skipped theses builds. @artemcm Can we try that again please?

@artemcm
Copy link
Contributor

artemcm commented Oct 11, 2024

@swift-ci test

@antoniofrighetto
Copy link
Contributor Author

Gentle ping for merging this.

@antoniofrighetto
Copy link
Contributor Author

Rebased conflicts, kind ping for testing this again.

@aschwaighofer
Copy link
Contributor

@swift-ci test

@antoniofrighetto
Copy link
Contributor Author

@swift-ci test

CI job for Windows seems to have passed (https://ci-external.swift.org/job/swift-driver-PR-windows/1145/), but status has not been reported.

@antoniofrighetto antoniofrighetto force-pushed the feature/load-pass-plugin branch from aa2d5fb to f05c30a Compare December 2, 2024 10:35
@antoniofrighetto
Copy link
Contributor Author

Rebased to main, kindly to be tested again as CI job for Windows was skipped.

`Options.swift` has been regenerated so as to
include `load-pass-plugin` option as well.
@antoniofrighetto antoniofrighetto force-pushed the feature/load-pass-plugin branch from f05c30a to 417489e Compare January 13, 2025 14:16
@antoniofrighetto
Copy link
Contributor Author

Very gentle ping to finalize swiftlang/swift#68985 here in the driver as well. The option was already included in 37b167b, this became mostly NFC testing the feature (cc/ @aschwaighofer).

@artemcm
Copy link
Contributor

artemcm commented Jan 13, 2025

@swift-ci test

@artemcm artemcm merged commit 2edd936 into swiftlang:main Jan 14, 2025
3 checks passed
func testFrontendLoadPassPlugin() throws {
#if os(Windows)
throw XCTSkip("'-load-pass-plugin' is not available on Windows.")
#else
Copy link
Member

Choose a reason for hiding this comment

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

Why is this not available on Windows?

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.

5 participants