We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 269f452 + c881ee9 commit 1060677Copy full SHA for 1060677
SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/BuildArguments.swift
@@ -65,6 +65,9 @@ struct BuildArguments: ParsableArguments {
65
)
66
var enableTestFuzzing: Bool = false
67
68
+ @Flag(help: "Treat all warnings as errors.")
69
+ var warningsAsErrors: Bool = false
70
+
71
@Flag(help: "Enable verbose logging.")
72
var verbose: Bool = false
73
}
SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/BuildCommand.swift
@@ -48,6 +48,10 @@ extension BuildCommand {
48
args += ["--scratch-path", buildDir]
49
50
51
+ if self.arguments.warningsAsErrors {
52
+ args += ["-Xswiftc", "-warnings-as-errors"]
53
+ }
54
55
#if !canImport(Darwin)
56
args += ["--enable-test-discovery"]
57
#endif
0 commit comments