Add reverted code path for pre 5.9
This commit is contained in:
parent
a3ffd95019
commit
3857a5e3bf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue