We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3221d4 commit 43623d3Copy full SHA for 43623d3
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
@@ -448,9 +448,10 @@ class DependencyScanningAction {
448
449
// Use the dependency scanning optimized file system if requested to do so.
450
if (DepFS) {
451
- StringRef ModulesCachePath =
452
- ScanInstance.getHeaderSearchOpts().ModuleCachePath;
453
-
+ SmallString<256> ModulesCachePath(
+ ScanInstance.getHeaderSearchOpts().ModuleCachePath);
+ FileMgr->makeAbsolutePath(ModulesCachePath);
454
+ llvm::sys::path::remove_dots(ModulesCachePath);
455
DepFS->resetBypassedPathPrefix();
456
if (!ModulesCachePath.empty())
457
DepFS->setBypassedPathPrefix(ModulesCachePath);
0 commit comments