File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -269,8 +269,14 @@ public final class UserToolchain: Toolchain {
269
269
270
270
// Look for an override in the env.
271
271
if let pdLibDirEnvStr = ProcessEnv . vars [ " SWIFTPM_PD_LIBS " ] {
272
- // We pick the first path which exists in a colon seperated list.
273
- let paths = pdLibDirEnvStr. split ( separator: " : " ) . map ( String . init)
272
+ // We pick the first path which exists in an environment variable
273
+ // delimited by the platform specific string separator.
274
+ #if os(Windows)
275
+ let separator : Character = " ; "
276
+ #else
277
+ let separator : Character = " : "
278
+ #endif
279
+ let paths = pdLibDirEnvStr. split ( separator: separator) . map ( String . init)
274
280
var foundPDLibDir = false
275
281
for pathString in paths {
276
282
if let path = try ? AbsolutePath ( validating: pathString) , localFileSystem. exists ( path) {
You can’t perform that action at this time.
0 commit comments