mirror of
https://github.com/apple/swift.git
synced 2026-01-07 22:52:31 +01:00
implement support for a new [stdlib] attribute that can be slapped on an import decl.
This causes the SourceLoader to recursively parse the imported module in standard library mode, giving it access to the Builtin module. This is all a terrible hack and should be ripped out with great victory someday, but until we have binary modules that persist the build setting used to produce the module, this is the best we can do. Swift SVN r5847
This commit is contained in:
@@ -133,7 +133,8 @@ static Module *makeTU(ASTContext &ctx, AccessPathElem moduleID,
|
||||
|
||||
|
||||
Module *SerializedModuleLoader::loadModule(SourceLoc importLoc,
|
||||
Module::AccessPathTy path) {
|
||||
Module::AccessPathTy path,
|
||||
bool isStdlibImport) {
|
||||
|
||||
// FIXME: Swift submodules?
|
||||
if (path.size() > 1)
|
||||
|
||||
Reference in New Issue
Block a user