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.
1 parent a63c292 commit 9d231fdCopy full SHA for 9d231fd
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
@@ -46,6 +46,10 @@ extension BuildCommand {
46
args += ["--scratch-path", buildDir]
47
48
49
+ if self.arguments.warningsAsErrors {
50
+ args += ["-Xswiftc", "-warnings-as-errors"]
51
+ }
52
53
#if !canImport(Darwin)
54
args += ["--enable-test-discovery"]
55
#endif
0 commit comments