Special-case the standard library to always live relative to the compiler.

Import "swift" will now only find "swift.swiftmodule", and only in the
runtime import path.

<rdar://problem/15898866>

Swift SVN r12932
This commit is contained in:
Jordan Rose
2014-01-24 20:10:26 +00:00
parent 35d1f4aa1c
commit 4844f22475
11 changed files with 95 additions and 79 deletions

View File

@@ -1158,7 +1158,8 @@ Module *ModuleFile::getModule(Identifier name) {
auto importer = getContext().getClangModuleLoader();
assert(importer && "no way to import shadowed module");
ShadowedModule = importer->loadModule(SourceLoc(),
std::make_pair(name, SourceLoc()));
std::make_pair(name, SourceLoc()),
false);
}
return ShadowedModule;