Skip to content

Commit 911febb

Browse files
author
David Ungar
committed
Add notes.
1 parent d0e0930 commit 911febb

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
@@ -1053,9 +1053,12 @@ extension Driver {
10531053
}
10541054

10551055
private func writeIncrementalBuildInformation(_ jobs: [Job]) {
1056+
// In case the write fails, don't crash the build.
1057+
// A mitigation to rdar://76359678.
1058+
// If the write fails, import incrementality is lost, but it is not a fatal error.
10561059
if let incrementalCompilationState = self.incrementalCompilationState {
10571060
let hadError = incrementalCompilationState.writeDependencyGraph()
1058-
/// Ensure that a bogus dependency graph is not used next time
1061+
/// Ensure that a bogus dependency graph is not used next time.
10591062
guard !hadError else {
10601063
buildRecordInfo?.removeBuildRecord()
10611064
return

0 commit comments

Comments
 (0)