Skip to content

Commit 70bb830

Browse files
author
David Ungar
committed
Add notes.
1 parent 878d86e commit 70bb830

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/SwiftDriver/Driver/Driver.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,9 +1036,12 @@ extension Driver {
10361036
}
10371037

10381038
private func writeIncrementalBuildInformation(_ jobs: [Job]) {
1039+
// In case the write fails, don't crash the build.
1040+
// A mitigation to rdar://76359678.
1041+
// If the write fails, import incrementality is lost, but it is not a fatal error.
10391042
if let incrementalCompilationState = self.incrementalCompilationState {
10401043
let hadError = incrementalCompilationState.writeDependencyGraph()
1041-
/// Ensure that a bogus dependency graph is not used next time
1044+
/// Ensure that a bogus dependency graph is not used next time.
10421045
guard !hadError else {
10431046
buildRecordInfo?.removeBuildRecord()
10441047
return

0 commit comments

Comments
 (0)