File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ extension Toolchain {
88
88
}
89
89
}
90
90
91
+ /// Returns the appropriate Swift resources directory path.
92
+ ///
93
+ /// - Parameter static: Controls whether to use the static or dynamic
94
+ /// resources directory.
91
95
public func swiftResourcesPath( static isStatic: Bool ) -> AbsolutePath ? {
92
96
isStatic ? swiftStaticResourcesPath : swiftResourcesPath
93
97
}
Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ public final class UserToolchain: Toolchain {
40
40
/// An array of paths to search for libraries at link time.
41
41
public let librarySearchPaths : [ AbsolutePath ]
42
42
43
+ /// Path containing Swift resources for dynamic linking.
43
44
public var swiftResourcesPath : AbsolutePath ? {
44
45
destination. pathsConfiguration. swiftResourcesPath
45
46
}
46
47
48
+ /// Path containing Swift resources for static linking.
47
49
public var swiftStaticResourcesPath : AbsolutePath ? {
48
50
destination. pathsConfiguration. swiftStaticResourcesPath
49
51
}
You can’t perform that action at this time.
0 commit comments