Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Sources/swift-driver/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ let diagnosticsEngine = DiagnosticsEngine(handlers: [Driver.stderrDiagnosticsHan
do {
let processSet = ProcessSet()
intHandler = try InterruptHandler {
processSet.terminate()
// If the swift-driver invocation is interrupted by the build system,
// returning non-zero value emits red-herring error messages in the build logs.
// So we exit with 0 here.
exit(0)
// Ignore the interruption signal.
// The underlying swift compiler isn't ready to be safely interrupted yet and
// interrupting them may cause red-herring build failures that may pollute the build
// log.
}

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