Skip to content

Commit 2727fbf

Browse files
committed
Minor fix
1 parent 44f7f25 commit 2727fbf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/TSCBasic/PathShims.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ extension AbsolutePath {
175175
}
176176
if let first = rel.components.first,
177177
first != ".." {
178+
#if os(Windows)
179+
return ".\\" + rel.pathString
180+
#else
178181
return "./" + rel.pathString
182+
#endif
179183
} else {
180184
return rel.pathString
181185
}

0 commit comments

Comments
 (0)