Skip to content

Commit 3a16b11

Browse files
committed
Pass-down -downgrade-typecheck-interface-error to interface verification job
The interface verification phase should downgrade errors to warnings as an intermediate step to stage it in. This won't fail the build if interface errors occur but it should help users verify project-side fixes.
1 parent a7ec74f commit 3a16b11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SwiftDriver/Jobs/VerifyModuleInterfaceJob.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ extension Driver {
2626
outputs.append(TypedVirtualPath(file: outputPath, type: .diagnostics))
2727
}
2828

29+
// TODO: remove this because we'd like module interface errors to fail the build.
30+
if isFrontendArgSupported(.downgradeTypecheckInterfaceError) {
31+
commandLine.appendFlag(.downgradeTypecheckInterfaceError)
32+
}
2933
return Job(
3034
moduleName: moduleOutputInfo.name,
3135
kind: .verifyModuleInterface,

0 commit comments

Comments
 (0)