mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user