Merge pull request #12598 from a3d4/case-insensitive-root-in-normalizeclipathforvfs

Treat root path in normalizeCLIPathForVFS as case insensitive on Windows
This commit is contained in:
Kamil Śliwak
2022-02-08 13:17:05 +01:00
committed by GitHub
2 changed files with 26 additions and 5 deletions
+2 -1
View File
@@ -269,7 +269,8 @@ boost::filesystem::path FileReader::normalizeCLIPathForVFS(
if (!isUNCPath(normalizedPath))
{
boost::filesystem::path workingDirRootPath = canonicalWorkDir.root_path();
if (normalizedRootPath == workingDirRootPath)
// Ignore drive letter case on Windows (C:\ <=> c:\).
if (boost::filesystem::equivalent(normalizedRootPath, workingDirRootPath))
normalizedRootPath = "/";
}