Skip to content

Commit fde568a

Browse files
committed
exclude \\.\C: from dependencies
1 parent 17a97ff commit fde568a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

visuald/fileutil.d

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import stdext.string;
1717
import stdext.path;
1818

1919
import std.algorithm;
20+
import std.ascii : isAlpha;
2021
import std.path;
2122
import std.file;
2223
import std.string;
@@ -49,6 +50,8 @@ void getOldestNewestFileTime(string[] files, out long oldest, out long newest, o
4950
foreach(file; files)
5051
{
5152
file = canonicalPath(file);
53+
if (file.length == 6 && file[0..3] == "//./" && isAlpha(file[4]) && file[5] == ':')
54+
continue; // since version 1.40, LDC produces a dependency on "\\.\c:"
5255
long ftm;
5356
if(auto ptm = file in gCachedFileTimes)
5457
ftm = *ptm;

0 commit comments

Comments
 (0)