Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text interface format version #20458

Merged
merged 13 commits into from
Nov 14, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
[ModuleInterface] Emit error when we fail to find a dependency.
  • Loading branch information
graydon committed Nov 13, 2018
commit be7fcfdc2df1b88849aa9e310c6f6a7fd8abeded
3 changes: 3 additions & 0 deletions include/swift/AST/DiagnosticsFrontend.def
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ ERROR(error_extracting_version_from_parseable_interface,none,
"error extracting version from parseable module interface", ())
ERROR(error_extracting_flags_from_parseable_interface,none,
"error extracting flags from parseable module interface", ())
ERROR(missing_dependency_of_parseable_module_interface,none,
"missing dependency '%0' of parseable module interface '%1': %2",
(StringRef, StringRef, StringRef))

#ifndef DIAG_NO_UNDEF
# if defined(DIAG)
Expand Down
3 changes: 3 additions & 0 deletions lib/Frontend/ParseableInterfaceSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ static bool buildSwiftModuleFromSwiftInterface(
for (auto const &Dep : DepNames) {
auto DepStatus = FS.status(Dep);
if (!DepStatus) {
Diags.diagnose(SourceLoc(),
diag::missing_dependency_of_parseable_module_interface,
Dep, InPath, DepStatus.getError().message());
SubError = true;
return;
}
Expand Down