mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[serialization] Add the HasBuiltinModuleAccess hack to fallback modules too.
This only affects people with SWIFT_USE_LIBRARY_MODULES turned on, i.e. me. Swift SVN r5956
This commit is contained in:
@@ -100,6 +100,9 @@ static Module *makeTU(ASTContext &ctx, AccessPathElem moduleID,
|
|||||||
TranslationUnit *TU = new (ctx) TranslationUnit(moduleID.first, comp, ctx,
|
TranslationUnit *TU = new (ctx) TranslationUnit(moduleID.first, comp, ctx,
|
||||||
TranslationUnit::Library);
|
TranslationUnit::Library);
|
||||||
|
|
||||||
|
TU->HasBuiltinModuleAccess = (moduleID.first.str() == "swift");
|
||||||
|
performAutoImport(TU);
|
||||||
|
|
||||||
ctx.LoadedModules[moduleID.first.str()] = TU;
|
ctx.LoadedModules[moduleID.first.str()] = TU;
|
||||||
|
|
||||||
std::vector<unsigned> BufferIDs;
|
std::vector<unsigned> BufferIDs;
|
||||||
|
|||||||
Reference in New Issue
Block a user