forked from OSchip/llvm-project
[clangd] Unlink VFS working dir from OS working dir.
A lot of our previous FS manipulation was thread-unsafe in practice with the RealFS implementation. This switches to a different RealFS mode where path-manipulation is used to simulate multiple working dirs. r351050 both added this mode and removed the cache. If we want to move back to the old implementation we need to put the cache back. llvm-svn: 351051
This commit is contained in:
parent
c2b310aedf
commit
2dccf13538
|
@ -75,9 +75,10 @@ clang::clangd::RealFileSystemProvider::getFileSystem() const {
|
|||
// FIXME: Try to use a similar approach in Sema instead of relying on
|
||||
// propagation of the 'isVolatile' flag through all layers.
|
||||
#ifdef _WIN32
|
||||
return new VolatileFileSystem(llvm::vfs::getRealFileSystem());
|
||||
return new VolatileFileSystem(
|
||||
llvm::vfs::createPhysicalFileSystem().release());
|
||||
#else
|
||||
return llvm::vfs::getRealFileSystem();
|
||||
return llvm::vfs::createPhysicalFileSystem().release();
|
||||
#endif
|
||||
}
|
||||
} // namespace clangd
|
||||
|
|
Loading…
Reference in New Issue