File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Sources/SwiftDriver/Driver Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1053,9 +1053,12 @@ extension Driver {
1053
1053
}
1054
1054
1055
1055
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.
1056
1059
if let incrementalCompilationState = self . incrementalCompilationState {
1057
1060
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.
1059
1062
guard !hadError else {
1060
1063
buildRecordInfo? . removeBuildRecord ( )
1061
1064
return
You can’t perform that action at this time.
0 commit comments