Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,7 @@ extension IncrementalCompilationState.IncrementalDependencyAndInputSetup {
graphIfPresent = try ModuleDependencyGraph.read(from: dependencyGraphPath, info: self)
}
catch let ModuleDependencyGraph.ReadError.mismatchedSerializedGraphVersion(expected, read) {
diagnosticEngine.emit(.warning("Will not do cross-module incremental builds, wrong version of priors; expected \(expected) but read \(read) at '\(dependencyGraphPath)'"),
location: nil)
reporter?.report("Will not do cross-module incremental builds, wrong version of priors; expected \(expected) but read \(read) at '\(dependencyGraphPath)'")
graphIfPresent = nil
}
catch {
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftDriverTests/IncrementalCompilationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ extension DiagVerifiable {
"Incremental compilation: Read dependency graph"
}
@DiagsBuilder var couldNotReadPriors: [Diagnostic.Message] {
.warning("Will not do cross-module incremental builds, wrong version of priors; expected")
.remark("Will not do cross-module incremental builds, wrong version of priors; expected")
}
// MARK: - dependencies
@DiagsBuilder func reading(deps inputs: [String]) -> [Diagnostic.Message] {
Expand Down