Skip to content

Make -check-api-availability-only a driver flag and don't pass to verification jobs #889

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
Oct 27, 2021

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Oct 26, 2021

Promote the flag -check-api-availability-only to a driver flag. Pass it down to compilation jobs but not swiftinterface verification.

rdar://84680002

C++ driver PR: swiftlang/swift#39928

…ification jobs

Promote the flag -check-api-availability-only to a driver flag. Pass it
down to all compilation jobs except swiftinterface verification.

rdar://84680002
@xymus
Copy link
Contributor Author

xymus commented Oct 26, 2021

@swift-ci Please test

@@ -48,7 +48,7 @@ extension Option {
public static let buildModuleFromParseableInterface: Option = Option("-build-module-from-parseable-interface", .flag, alias: Option.compileModuleFromInterface, attributes: [.helpHidden, .frontend, .noDriver], group: .modes)
public static let bypassBatchModeChecks: Option = Option("-bypass-batch-mode-checks", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Bypass checks for batch-mode errors.")
public static let candidateModuleFile: Option = Option("-candidate-module-file", .separate, attributes: [.helpHidden, .frontend, .noDriver], metaVar: "<path>", helpText: "Specify Swift module may be ready to use for an interface")
public static let checkApiAvailabilityOnly: Option = Option("-check-api-availability-only", .flag, attributes: [.helpHidden, .frontend, .noDriver], helpText: "Only check the availability of the APIs, ignore function bodies")
public static let checkApiAvailabilityOnly: Option = Option("-check-api-availability-only", .flag, attributes: [.helpHidden, .frontend, .noInteractive], helpText: "Only check the availability of the APIs, ignore function bodies")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is still a change we should be making in the swift repo and legacy driver first, still. 😞

Otherwise when folks are updating this automatically this change won't be preserved.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, just saw the respective swift pr! 👍🏼

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You were too fast!

What's confusing about this is that we need to update the .td files in the compiler's repo, while having an updated driver to run the test on the compiler side.

@xymus xymus merged commit 506af05 into swiftlang:main Oct 27, 2021
@xymus xymus deleted the driver-check-api-only branch October 27, 2021 16:38
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.

3 participants