[SourceKit] Ignore the index-store-path flag for the sourcekitd requests

It was active for clang PCH/module creation coming from sourcekitd which was unnecessary index-store data creation.
This commit is contained in:
Argyrios Kyrtzidis
2017-07-06 11:04:19 -07:00
parent be204f27d2
commit 231add1c2e
2 changed files with 18 additions and 0 deletions

View File

@@ -419,6 +419,10 @@ bool SwiftASTManager::initCompilerInvocation(CompilerInvocation &Invocation,
FrontendOpts.PlaygroundTransform = false;
}
// Disable the index-store functionality for the sourcekitd requests.
FrontendOpts.IndexStorePath.clear();
ImporterOpts.IndexStorePath.clear();
if (!PrimaryFile.empty()) {
Optional<unsigned> PrimaryIndex;
for (auto i : indices(Invocation.getFrontendOptions().InputFilenames)) {