Skip to content

Commit cad0d23

Browse files
committed
[VirtualPath] Adopt TSC's RelativePath.appending(component:)
1 parent 862edd8 commit cad0d23

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/SwiftDriver/Utilities/VirtualPath.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,9 @@ public enum VirtualPath: Hashable {
107107
case .absolute(let path):
108108
return .absolute(path.appending(component: component))
109109
case .relative(let path):
110-
// FIXME: TSCBasic should probably have RelativePath.appending(component:)
111-
return .relative(RelativePath(path.pathString + "/" + component))
110+
return .relative(path.appending(component: component))
112111
case .temporary(let path):
113-
return .temporary(RelativePath(path.pathString + "/" + component))
112+
return .temporary(path.appending(component: component))
114113
case .standardInput, .standardOutput:
115114
assertionFailure("Can't append path component to standard in/out")
116115
return self

0 commit comments

Comments
 (0)