Skip to content

Commit ac704e4

Browse files
committed
[Index] Prepare to support more distributed modules than the SDKs
1 parent 4a825a8 commit ac704e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Index/IndexRecord.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,13 @@ static void addModuleDependencies(ArrayRef<ImportedModule> imports,
447447
}
448448
} else {
449449
// Serialized AST file.
450-
// Only index system modules from the SDK, and the stdlib.
450+
// Only index distributed system modules, and the stdlib.
451451
// We don't officially support binary swift modules, so normally
452452
// the index data for user modules would get generated while
453453
// building them.
454+
bool isDistributedModule = mod->isSDKModule();
454455
if (mod->isSystemModule() && indexSystemModules &&
455-
(mod->isSDKModule() || mod->isStdlibModule()) &&
456+
(isDistributedModule || mod->isStdlibModule()) &&
456457
(!skipStdlib || !mod->isStdlibModule())) {
457458
emitDataForSwiftSerializedModule(mod, indexStorePath,
458459
indexClangModules,

0 commit comments

Comments
 (0)