Include the xcrun incantation to print the SDK path in the "no SDK" error.

Per DaveA's suggestion.

Swift SVN r13250
This commit is contained in:
Jordan Rose
2014-01-31 23:01:08 +00:00
parent 7d01643444
commit 1d0d9ed070
3 changed files with 12 additions and 3 deletions

View File

@@ -130,8 +130,10 @@ SerializedModuleLoader::loadAST(Module &M, Optional<SourceLoc> diagLoc,
if (loadedModuleFile->getStatus() == ModuleStatus::MissingShadowedModule) {
Ctx.Diags.diagnose(*diagLoc, diag::serialization_missing_shadowed_module,
M.Name);
if (Ctx.SearchPathOpts.SDKPath.empty())
if (Ctx.SearchPathOpts.SDKPath.empty()) {
Ctx.Diags.diagnose(SourceLoc(), diag::sema_no_import_no_sdk);
Ctx.Diags.diagnose(SourceLoc(), diag::sema_no_import_no_sdk_xcrun);
}
return nullptr;
}
@@ -171,8 +173,10 @@ SerializedModuleLoader::loadAST(Module &M, Optional<SourceLoc> diagLoc,
missingNames);
}
if (Ctx.SearchPathOpts.SDKPath.empty())
if (Ctx.SearchPathOpts.SDKPath.empty()) {
Ctx.Diags.diagnose(SourceLoc(), diag::sema_no_import_no_sdk);
Ctx.Diags.diagnose(SourceLoc(), diag::sema_no_import_no_sdk_xcrun);
}
return nullptr;
}