[Serialization] Suggest solution for SDK mods causing deserialization failures

Many deserialization failures at this points are caused by archives
installed over the SDK. Let's extend the current error message with a
solution for such a case.

rdar://86280699
This commit is contained in:
Alexis Laferrière
2022-08-17 13:21:54 -07:00
parent 9e4a00d115
commit 9c840a7156
3 changed files with 8 additions and 0 deletions

View File

@@ -564,6 +564,8 @@ void ModuleFileSharedCore::fatal(llvm::Error error) const {
llvm::raw_svector_ostream out(errorStr);
out << "*** DESERIALIZATION FAILURE ***\n";
out << "*** If any module named here was modified in the SDK, please delete the ***\n";
out << "*** new swiftmodule files from the SDK and keep only swiftinterfaces. ***\n";
outputDiagnosticInfo(out);
out << "\n";
if (error) {