@@ -98,7 +98,7 @@ let package = Package(
98
98
" SWBBuildSystem " ,
99
99
" SWBServiceCore " ,
100
100
" SWBTaskExecution " ,
101
- . product( name: " SystemPackage " , package : " swift-system " , condition: . when( platforms: [ . linux, . android, . windows] ) ) ,
101
+ . product( name: " SystemPackage " , package : " swift-system " , condition: . when( platforms: [ . linux, . openbsd , . android, . windows, . custom ( " freebsd " ) ] ) ) ,
102
102
] ,
103
103
swiftSettings: swiftSettings ( languageMode: . v5) ) ,
104
104
. target(
@@ -179,8 +179,8 @@ let package = Package(
179
179
" SWBCSupport " ,
180
180
" SWBLibc " ,
181
181
. product( name: " ArgumentParser " , package : " swift-argument-parser " ) ,
182
- . product( name: " Crypto " , package : " swift-crypto " , condition: . when( platforms: [ . linux, . android] ) ) ,
183
- . product( name: " SystemPackage " , package : " swift-system " , condition: . when( platforms: [ . linux, . android, . windows] ) ) ,
182
+ . product( name: " Crypto " , package : " swift-crypto " , condition: . when( platforms: [ . linux, . openbsd , . android, . custom ( " freebsd " ) ] ) ) ,
183
+ . product( name: " SystemPackage " , package : " swift-system " , condition: . when( platforms: [ . linux, . openbsd , . android, . windows, . custom ( " freebsd " ) ] ) ) ,
184
184
] ,
185
185
swiftSettings: swiftSettings ( languageMode: . v5) ) ,
186
186
. target(
@@ -408,12 +408,20 @@ if useLocalDependencies {
408
408
package . dependencies += [ . package ( path: " ../llbuild " ) , ]
409
409
}
410
410
} else {
411
+ #if os(FreeBSD)
412
+ package . dependencies += [
413
+ // https://github.com/apple/swift-system/commit/4fa2a719c5d225fc763f21f2d341c0c8d825d65e is not yet in a tag
414
+ . package ( url: " https://github.com/apple/swift-system.git " , branch: " main " ) ,
415
+ ]
416
+ #else
411
417
package . dependencies += [
412
- // https://github.com/apple/swift-crypto/issues/262
413
- // 3.7.1 introduced a regression which fails to link on aarch64-windows; revert to <4.0.0 for the upper bound when this is fixed
414
- . package ( url: " https://github.com/apple/swift-crypto.git " , " 2.0.0 " ..< " 3.7.1 " ) ,
415
- . package ( url: " https://github.com/apple/swift-driver.git " , branch: " main " ) ,
416
418
. package ( url: " https://github.com/apple/swift-system.git " , . upToNextMajor( from: " 1.4.0 " ) ) ,
419
+ ]
420
+ #endif
421
+
422
+ package . dependencies += [
423
+ . package ( url: " https://github.com/apple/swift-crypto.git " , " 2.0.0 " ..< " 4.0.0 " ) ,
424
+ . package ( url: " https://github.com/apple/swift-driver.git " , branch: " main " ) ,
417
425
. package ( url: " https://github.com/apple/swift-argument-parser.git " , from: " 1.0.3 " ) ,
418
426
]
419
427
if !useLLBuildFramework {
0 commit comments