mirror of
https://github.com/MaskRay/ccls.git
synced 2025-06-07 16:54:54 +00:00
Use volatile filesystem (Windows)
This commit is contained in:
parent
af72b59d88
commit
e9bfd22533
@ -1264,6 +1264,12 @@ Index(SemaManager *manager, WorkingFiles *wfiles, VFS *vfs,
|
||||
Clang->createFileManager();
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
// Always set UserFilesAreVolatile true to avoid write locks on Windows
|
||||
Clang->setSourceManager(new SourceManager(Clang->getDiagnostics(),
|
||||
Clang->getFileManager(), true));
|
||||
#endif
|
||||
|
||||
IndexParam param(*vfs, no_linkage);
|
||||
auto DataConsumer = std::make_shared<IndexDataConsumer>(param);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user