Skip to content

Commit cf6356f

Browse files
author
David Ungar
committed
CompilerMode description
1 parent b1f8950 commit cf6356f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Sources/SwiftDriver/Driver/CompilerMode.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,19 @@ extension CompilerMode {
2525
}
2626
}
2727
}
28+
29+
extension CompilerMode: CustomStringConvertible {
30+
public var description: String {
31+
switch self {
32+
33+
case .standardCompile:
34+
return "standard compilation"
35+
case .singleCompile:
36+
return "whole module optimization"
37+
case .repl:
38+
return "read-eval-print-loop compilation"
39+
case .immediate:
40+
return "immediate compilation"
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)