Skip to content

Commit 0a816cd

Browse files
committed
Another CI fix
1 parent 5868704 commit 0a816cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftBuildSupport/PackagePIFBuilder+Helpers.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ import struct PackageGraph.ResolvedProduct
5656
import func PackageLoading.pkgConfigArgs
5757

5858
// TODO: Move this back to `PackagePIFBuilder` once we get rid of `#if canImport(SwiftBuild)`.
59-
func targetName(forProductName name: String, suffix: TargetSuffix? = nil) -> String {
60-
let suffix = suffix?.rawValue ?? ""
59+
func targetName(forProductName name: String, suffix: String? = nil) -> String {
60+
let suffix = suffix ?? ""
6161
return "\(name)\(suffix)-product"
6262
}
6363

@@ -151,7 +151,7 @@ extension PackagePIFBuilder {
151151
/// This format helps make sure that targets and products with the same name (as they often have) have different
152152
/// target names in the PIF.
153153
static func targetName(forProductName name: String, suffix: TargetSuffix? = nil) -> String {
154-
return SwiftBuildSupport.targetName(forProductName: name, suffix: suffix)
154+
return SwiftBuildSupport.targetName(forProductName: name, suffix: suffix?.rawValue)
155155
}
156156
}
157157

0 commit comments

Comments
 (0)