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 42b26ce commit 5470726Copy full SHA for 5470726
Sources/Build/BuildPlan.swift
@@ -57,6 +57,14 @@ public struct BuildParameters {
57
public var swiftCompilerFlags: [String] {
58
var flags = self.flags.cCompilerFlags.flatMap({ ["-Xcc", $0] })
59
flags += self.flags.swiftCompilerFlags
60
+
61
+ let stream = stdoutStream as? LocalFileOutputByteStream
62
+ let terminalController = stream.flatMap({ TerminalController(stream: $0) })
63
+ // Add extra flags if stdout is tty
64
+ if terminalController != nil {
65
+ flags += ["-Xfrontend", "-color-diagnostics"]
66
+ }
67
68
flags += verbosity.ccArgs
69
return flags
70
}
0 commit comments