mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user