Skip to content

Commit cfdae2e

Browse files
committed
PrebuiltModuleGen: print entire compiler invocation for failed module generation job
rdar://152342109
1 parent c2307e1 commit cfdae2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftDriver/Jobs/PrebuiltModulesJob.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,10 @@ fileprivate class ModuleCompileDelegate: JobExecutionDelegate {
247247
}
248248
#if os(Windows)
249249
case .abnormal(let exception):
250-
diagnosticsEngine.emit(.remark("\(job.moduleName) exception: \(exception)"))
250+
diagnosticsEngine.emit(.error(try! result.utf8stderrOutput()))
251251
#else
252252
case .signalled:
253-
diagnosticsEngine.emit(.remark("\(job.moduleName) interrupted"))
253+
diagnosticsEngine.emit(.error(try! result.utf8stderrOutput()))
254254
#endif
255255
}
256256
do {

0 commit comments

Comments
 (0)