Skip to content

Commit 314e2e7

Browse files
committed
Emit a remark on interrupt of the driver
This should help distinguish cases where the driver invocation was interrupted by the client (e.g. build system) vs. exited with a failure on its own.
1 parent 17bd7cf commit 314e2e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/swift-driver/main.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ do {
2626
// The underlying swift compiler isn't ready to be safely interrupted yet and
2727
// interrupting them may cause red-herring build failures that may pollute the build
2828
// log.
29+
diagnosticsEngine.emit(.remark("Compilation process interrupted"))
2930
}
3031

3132
if ProcessEnv.vars["SWIFT_ENABLE_EXPLICIT_MODULE"] != nil {

0 commit comments

Comments
 (0)