Skip to content

Commit 9cd1aa6

Browse files
committed
Describe generatePCM jobs with the module name, not the first display input.
1 parent 70864a4 commit 9cd1aa6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Sources/SwiftDriver/Jobs/Job.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ extension Job : CustomStringConvertible {
150150
return "Wrapping Swift module \(moduleName)"
151151

152152
case .generatePCM:
153-
return "Compiling Clang module \(displayInputs.first?.file.basename ?? "")"
153+
return "Compiling Clang module \(moduleName)"
154154

155155
case .interpret:
156156
return "Interpreting \(displayInputs.first?.file.name ?? "")"

Tests/SwiftDriverTests/ExplicitModuleBuildTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ private func checkExplicitModuleBuildJob(job: Job,
4949
TypedVirtualPath(file: try VirtualPath(path: clangModuleDetails.moduleMapPath),
5050
type: .clangModuleMap)
5151
XCTAssertEqual(job.kind, .generatePCM)
52+
XCTAssertEqual(job.description, "Compiling Clang module \(moduleId.moduleName)")
5253
XCTAssertTrue(job.inputs.contains(moduleMapPath))
5354
case .swiftPlaceholder(_):
5455
XCTFail("Placeholder dependency found.")

0 commit comments

Comments
 (0)