File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Sources/SwiftDriver/IncrementalCompilation Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -677,7 +677,9 @@ extension ModuleDependencyGraph {
677
677
atomically: true )
678
678
return false
679
679
} catch {
680
- info. diagnosticEngine. emit ( . warning_could_not_write_dep_graph( to: path, error: error) )
680
+ // It would be OK to just warn here because the build record will be
681
+ // removed so that bogus priors won't be used next time.
682
+ info. diagnosticEngine. emit ( . error_could_not_write_dep_graph( to: path, error: error) )
681
683
return true
682
684
}
683
685
}
@@ -1038,11 +1040,12 @@ fileprivate extension DependencyKey.Designator {
1038
1040
}
1039
1041
1040
1042
extension Diagnostic . Message {
1041
- fileprivate static func warning_could_not_write_dep_graph(
1042
- to path: VirtualPath ,
1043
- error: Error
1043
+ // FIXME: This should be a warning, but I've been asked to make this
1044
+ // an error for now.
1045
+ fileprivate static func error_could_not_write_dep_graph(
1046
+ to path: VirtualPath
1044
1047
) -> Diagnostic . Message {
1045
- . warning ( " could not write driver dependency graph to \( path) , \( error. localizedDescription) " )
1048
+ . error ( " could not write driver dependency graph to \( path) , \( error. localizedDescription) " )
1046
1049
}
1047
1050
}
1048
1051
You can’t perform that action at this time.
0 commit comments