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 @@ -1036,9 +1036,12 @@ extension Driver {
1036
1036
}
1037
1037
1038
1038
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.
1039
1042
if let incrementalCompilationState = self . incrementalCompilationState {
1040
1043
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.
1042
1045
guard !hadError else {
1043
1046
buildRecordInfo? . removeBuildRecord ( )
1044
1047
return
You can’t perform that action at this time.
0 commit comments