mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user