File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -856,11 +856,14 @@ enum CXErrorCode clang_experimental_DependencyScanner_generateReproducer(
856856 for (const Command &BuildCommand : TU.Commands )
857857 PrintArguments (ScriptOS, BuildCommand.Arguments );
858858
859+ auto RealFS = llvm::vfs::getRealFileSystem ();
860+ RealFS->setCurrentWorkingDirectory (*Opts.WorkingDirectory );
861+
859862 SmallString<128 > VFSCachePath = FileCachePath;
860863 llvm::sys::path::append (VFSCachePath, " vfs" );
861864 std::string VFSCachePathStr = VFSCachePath.str ().str ();
862865 llvm::FileCollector FileCollector (VFSCachePathStr,
863- /* OverlayRoot=*/ VFSCachePathStr);
866+ /* OverlayRoot=*/ VFSCachePathStr, RealFS );
864867 for (const auto &FileDep : TU.FileDeps ) {
865868 FileCollector.addFile (FileDep);
866869 }
You can’t perform that action at this time.
0 commit comments