Skip to content

Commit 43623d3

Browse files
committed
Fix Windows CI
1 parent a3221d4 commit 43623d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,10 @@ class DependencyScanningAction {
448448

449449
// Use the dependency scanning optimized file system if requested to do so.
450450
if (DepFS) {
451-
StringRef ModulesCachePath =
452-
ScanInstance.getHeaderSearchOpts().ModuleCachePath;
453-
451+
SmallString<256> ModulesCachePath(
452+
ScanInstance.getHeaderSearchOpts().ModuleCachePath);
453+
FileMgr->makeAbsolutePath(ModulesCachePath);
454+
llvm::sys::path::remove_dots(ModulesCachePath);
454455
DepFS->resetBypassedPathPrefix();
455456
if (!ModulesCachePath.empty())
456457
DepFS->setBypassedPathPrefix(ModulesCachePath);

0 commit comments

Comments
 (0)