Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/SwiftBuildSupport/PackagePIFBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public final class PackagePIFBuilder {
// Products.
case application
case staticArchive
case objectFile
case commonObject
case dynamicLibrary
case framework
case executable
Expand All @@ -382,7 +382,7 @@ public final class PackagePIFBuilder {
self = switch pifProductType {
case .application: .application
case .staticArchive: .staticArchive
case .objectFile: .objectFile
case .commonObject: .commonObject
case .dynamicLibrary: .dynamicLibrary
case .framework: .framework
case .executable: .executable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,7 @@ extension PackagePIFProjectBuilder {
}

case .staticLibrary, .executable:
#if os(Windows) // Temporary until we get a new productType in swift-build
productType = .staticArchive
#else
productType = .objectFile
#endif
productType = .commonObject

case .macro:
productType = .hostBuildTool
Expand Down