File tree 3 files changed +19
-5
lines changed
Plugins/AWSLambdaPackager
Sources/AWSLambdaRuntimeCore
3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ let package = Package(
21
21
. library( name: " AWSLambdaTesting " , targets: [ " AWSLambdaTesting " ] ) ,
22
22
] ,
23
23
dependencies: [
24
- . package ( url: " https://github.com/apple/swift-nio.git " , . upToNextMajor( from: " 2.43.1 " ) ) ,
25
- . package ( url: " https://github.com/apple/swift-log.git " , . upToNextMajor( from: " 1.4.2 " ) ) ,
24
+ . package ( url: " https://github.com/apple/swift-nio.git " , . upToNextMajor( from: " 2.67.0 " ) ) ,
25
+ . package ( url: " https://github.com/apple/swift-log.git " , . upToNextMajor( from: " 1.5.4 " ) ) ,
26
26
. package ( url: " https://github.com/apple/swift-docc-plugin " , from: " 1.0.0 " ) ,
27
27
] ,
28
28
targets: [
Original file line number Diff line number Diff line change @@ -16,8 +16,16 @@ import Dispatch
16
16
import Foundation
17
17
import PackagePlugin
18
18
19
- #if canImport(Glibc)
19
+ #if os(macOS)
20
+ import Darwin
21
+ #elseif canImport(Glibc)
20
22
import Glibc
23
+ #elseif canImport(Musl)
24
+ import Musl
25
+ #elseif os(Windows)
26
+ import ucrt
27
+ #else
28
+ #error("Unsupported platform")
21
29
#endif
22
30
23
31
@main
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- #if os(Linux)
15
+ #if os(macOS)
16
+ import Darwin. C
17
+ #elseif canImport(Glibc)
16
18
import Glibc
19
+ #elseif canImport(Musl)
20
+ import Musl
21
+ #elseif os(Windows)
22
+ import ucrt
17
23
#else
18
- import Darwin . C
24
+ #error("Unsupported platform")
19
25
#endif
20
26
21
27
#if swift(<5.9)
You can’t perform that action at this time.
0 commit comments