Skip to content

Commit 1be51a2

Browse files
committed
We link against SwiftBuild (and not SWBProjectModel)
1 parent 4fff790 commit 1be51a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftBuildSupport/PackagePIFProjectBuilder.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ struct PackagePIFProjectBuilder {
278278
// CoreData files should also be in the actual target because they
279279
// can end up generating code during the build.
280280
// The build system will only perform codegen tasks for the main target in this case.
281-
let isCoreDataFile = [SWBProjectModel.SwiftBuildFileType.xcdatamodeld, .xcdatamodel]
281+
let isCoreDataFile = [SwiftBuild.SwiftBuildFileType.xcdatamodeld, .xcdatamodel]
282282
.contains { $0.fileTypes.contains(resourcePath.pathExtension) }
283283

284284
if isCoreDataFile {
@@ -289,7 +289,7 @@ struct PackagePIFProjectBuilder {
289289
}
290290

291291
// Core ML files need to be included in the source module as well, because there is code generation.
292-
let coreMLFileTypes: [SWBProjectModel.SwiftBuildFileType] = [.mlmodel, .mlpackage]
292+
let coreMLFileTypes: [SwiftBuild.SwiftBuildFileType] = [.mlmodel, .mlpackage]
293293
let isCoreMLFile = coreMLFileTypes.contains { $0.fileTypes.contains(resourcePath.pathExtension) }
294294

295295
if isCoreMLFile {
@@ -300,7 +300,7 @@ struct PackagePIFProjectBuilder {
300300
}
301301

302302
// Metal source code needs to be added to the source build phase.
303-
let isMetalFile = SWBProjectModel.SwiftBuildFileType.metal.fileTypes.contains(resourcePath.pathExtension)
303+
let isMetalFile = SwiftBuild.SwiftBuildFileType.metal.fileTypes.contains(resourcePath.pathExtension)
304304

305305
if isMetalFile {
306306
self.project[keyPath: pifTargetForResourcesKP].addSourceFile { id in

0 commit comments

Comments
 (0)