Skip to content

Commit 1e7b2be

Browse files
authored
Merge pull request #1910 from nkcsgexi/show-command-prebuilt
PrebuiltModuleGen: print entire compiler invocation for failed module generation job
2 parents 3d6cd5a + cfdae2e commit 1e7b2be

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)