File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
Sources/ScipioKit/Producer/PIF Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ import PackageDescription
55import Foundation
66
77let swiftPMBranch : String
8- #if compiler(>=6.1)
8+ #if compiler(>=6.2) // Xcode 26
9+ swiftPMBranch = " release/6.2 "
10+ #elseif compiler(>=6.1) // Xcode 16.3, 16.4
911swiftPMBranch = " release/6.1 "
10- #else
12+ #else // Xcode 16.2 or earlier
1113swiftPMBranch = " release/6.0 "
1214#endif
1315
Original file line number Diff line number Diff line change @@ -125,6 +125,16 @@ struct PIFCompiler: Compiler {
125125 }
126126
127127 private func makeBuildParameters( toolchain: UserToolchain ) throws -> BuildParameters {
128+ #if compiler(>=6.2)
129+ try . init(
130+ destination: . target,
131+ dataPath: descriptionPackage. buildDirectory. spmAbsolutePath,
132+ configuration: buildOptions. buildConfiguration. spmConfiguration,
133+ toolchain: toolchain,
134+ flags: . init( ) ,
135+ driverParameters: BuildParameters . Driver ( enableParseableModuleInterfaces: buildOptions. enableLibraryEvolution)
136+ )
137+ #else
128138 try . init(
129139 destination: . target,
130140 dataPath: descriptionPackage. buildDirectory. spmAbsolutePath,
@@ -134,6 +144,7 @@ struct PIFCompiler: Compiler {
134144 isXcodeBuildSystemEnabled: true ,
135145 driverParameters: BuildParameters . Driver ( enableParseableModuleInterfaces: buildOptions. enableLibraryEvolution)
136146 )
147+ #endif
137148 }
138149}
139150
You can’t perform that action at this time.
0 commit comments