Skip to content

Commit e8f3617

Browse files
committed
Doc comments
1 parent 9707ab6 commit e8f3617

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Sources/PackageModel/Toolchain.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ extension Toolchain {
8888
}
8989
}
9090

91+
/// Returns the appropriate Swift resources directory path.
92+
///
93+
/// - Parameter static: Controls whether to use the static or dynamic
94+
/// resources directory.
9195
public func swiftResourcesPath(static isStatic: Bool) -> AbsolutePath? {
9296
isStatic ? swiftStaticResourcesPath : swiftResourcesPath
9397
}

Sources/PackageModel/UserToolchain.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ public final class UserToolchain: Toolchain {
4040
/// An array of paths to search for libraries at link time.
4141
public let librarySearchPaths: [AbsolutePath]
4242

43+
/// Path containing Swift resources for dynamic linking.
4344
public var swiftResourcesPath: AbsolutePath? {
4445
destination.pathsConfiguration.swiftResourcesPath
4546
}
4647

48+
/// Path containing Swift resources for static linking.
4749
public var swiftStaticResourcesPath: AbsolutePath? {
4850
destination.pathsConfiguration.swiftStaticResourcesPath
4951
}

0 commit comments

Comments
 (0)