File tree 1 file changed +3
-3
lines changed
Sources/SwiftBuildSupport
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ import struct PackageGraph.ResolvedProduct
56
56
import func PackageLoading. pkgConfigArgs
57
57
58
58
// 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 ?? " "
61
61
return " \( name) \( suffix) -product "
62
62
}
63
63
@@ -151,7 +151,7 @@ extension PackagePIFBuilder {
151
151
/// This format helps make sure that targets and products with the same name (as they often have) have different
152
152
/// target names in the PIF.
153
153
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 )
155
155
}
156
156
}
157
157
You can’t perform that action at this time.
0 commit comments