Skip to content

Commit 3eeaea2

Browse files
author
David Ungar
committed
Handle relative paths when writing build record. (and a typo fix)
1 parent 8101d69 commit 3eeaea2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Sources/SwiftDriver/Incremental Compilation/BuildRecord.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,7 @@ extension BuildRecord {
166166
func encode() throws -> String {
167167
let pathsAndInfos = try inputInfos.map {
168168
input, inputInfo -> (String, InputInfo) in
169-
guard let path = input.absolutePath else {
170-
throw Errors.notAbsolutePath(input)
171-
}
172-
return (path.pathString, inputInfo)
169+
return (input.name, inputInfo)
173170
}
174171
let inputInfosNode = Yams.Node(
175172
pathsAndInfos

Sources/SwiftDriver/Incremental Compilation/InputInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ extension InputInfo.Status {
6565
}
6666

6767
/// Construct a status to write at the end of the compilation.
68-
/// The status will be read for the nextr driver invocaiton and will control the scheduling of that job.
68+
/// The status will be read for the next driver invocation and will control the scheduling of that job.
6969
/// `upToDate` means only that the file was up to date when the build record was written.
7070
init( wasSkipped: Bool?, jobResult: ProcessResult? ) {
7171
if let exitStatus = jobResult?.exitStatus,

0 commit comments

Comments
 (0)