Add reverted code path for pre 5.9

This commit is contained in:
STREGA 2023-09-30 08:20:16 -04:00
parent a3ffd95019
commit 3857a5e3bf
1 changed files with 5 additions and 0 deletions

View File

@ -212,8 +212,13 @@ public final class Toolchain {
switch target.type { switch target.type {
case .regular, .executable: case .regular, .executable:
return RelativePath("Sources").appending(component: target.name).pathString return RelativePath("Sources").appending(component: target.name).pathString
#if swift(>=5.9)
case .test, .system, .binary, .macro, .plugin: case .test, .system, .binary, .macro, .plugin:
return nil return nil
#else
case .test, .system, .binary, .plugin:
return nil
#endif
} }
} }
return path return path