@@ -190,16 +190,6 @@ let package = Package(
190
190
" HomomorphicEncryptionProtobuf " ,
191
191
" _TestUtilities " ,
192
192
] , swiftSettings: executableSettings) ,
193
- . testTarget(
194
- name: " PIRGenerateDatabaseTests " ,
195
- dependencies: [ " PIRGenerateDatabase " ,
196
- " _TestUtilities " ,
197
- . product( name: " Numerics " , package : " swift-numerics " ) ] , swiftSettings: executableSettings) ,
198
- . testTarget(
199
- name: " PIRProcessDatabaseTests " ,
200
- dependencies: [ " PIRProcessDatabase " ,
201
- " _TestUtilities " ,
202
- . product( name: " Numerics " , package : " swift-numerics " ) ] , swiftSettings: executableSettings) ,
203
193
. testTarget(
204
194
name: " PrivateInformationRetrievalTests " ,
205
195
dependencies: [
@@ -226,6 +216,23 @@ let package = Package(
226
216
] , swiftSettings: executableSettings) ,
227
217
] )
228
218
219
+ // Workaround SwiftPM's attempt to link in executables which does not work on all
220
+ // platforms.
221
+ #if !os(Windows)
222
+ package . targets. append ( contentsOf: [
223
+ . testTarget(
224
+ name: " PIRGenerateDatabaseTests " ,
225
+ dependencies: [ " PIRGenerateDatabase " ,
226
+ " _TestUtilities " ,
227
+ . product( name: " Numerics " , package : " swift-numerics " ) ] , swiftSettings: executableSettings) ,
228
+ . testTarget(
229
+ name: " PIRProcessDatabaseTests " ,
230
+ dependencies: [ " PIRProcessDatabase " ,
231
+ " _TestUtilities " ,
232
+ . product( name: " Numerics " , package : " swift-numerics " ) ] , swiftSettings: executableSettings) ,
233
+ ] )
234
+ #endif
235
+
229
236
// MARK: - Benchmarks
230
237
231
238
var enableBenchmarking : Bool {
0 commit comments