@@ -213,16 +213,6 @@ let package = Package(
213213 " HomomorphicEncryptionProtobuf " ,
214214 " _TestUtilities " ,
215215 ] , swiftSettings: executableSettings) ,
216- . testTarget(
217- name: " PIRGenerateDatabaseTests " ,
218- dependencies: [ " PIRGenerateDatabase " ,
219- " _TestUtilities " ,
220- . product( name: " Numerics " , package : " swift-numerics " ) ] , swiftSettings: executableSettings) ,
221- . testTarget(
222- name: " PIRProcessDatabaseTests " ,
223- dependencies: [ " PIRProcessDatabase " ,
224- " _TestUtilities " ,
225- . product( name: " Numerics " , package : " swift-numerics " ) ] , swiftSettings: executableSettings) ,
226216 . testTarget(
227217 name: " PrivateInformationRetrievalTests " ,
228218 dependencies: [
@@ -245,6 +235,23 @@ let package = Package(
245235 ] , swiftSettings: executableSettings) ,
246236 ] )
247237
238+ // Workaround SwiftPM's attempt to link in executables which does not work on all
239+ // platforms.
240+ #if !os(Windows)
241+ package . targets. append ( contentsOf: [
242+ . testTarget(
243+ name: " PIRGenerateDatabaseTests " ,
244+ dependencies: [ " PIRGenerateDatabase " ,
245+ " _TestUtilities " ,
246+ . product( name: " Numerics " , package : " swift-numerics " ) ] , swiftSettings: executableSettings) ,
247+ . testTarget(
248+ name: " PIRProcessDatabaseTests " ,
249+ dependencies: [ " PIRProcessDatabase " ,
250+ " _TestUtilities " ,
251+ . product( name: " Numerics " , package : " swift-numerics " ) ] , swiftSettings: executableSettings) ,
252+ ] )
253+ #endif
254+
248255// MARK: - Benchmarks
249256
250257var enableBenchmarking : Bool {
0 commit comments