Skip to content

Commit 007a352

Browse files
committed
Allow compiling on macOS
1 parent d8ee71f commit 007a352

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ let defaultSwiftSettings: [SwiftSetting] =
1111

1212
let package = Package(
1313
name: "swift-aws-lambda-runtime",
14+
platforms: [.macOS(.v10_15)],
1415
products: [
1516
.library(name: "AWSLambdaRuntime", targets: ["AWSLambdaRuntime"]),
1617
// plugin to package the lambda, creating an archive that can be uploaded to AWS

Package@swift-6.0.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ let defaultSwiftSettings: [SwiftSetting] = [
1313

1414
let package = Package(
1515
name: "swift-aws-lambda-runtime",
16+
platforms: [.macOS(.v10_15)],
1617
products: [
1718
.library(name: "AWSLambdaRuntime", targets: ["AWSLambdaRuntime"]),
1819
// plugin to package the lambda, creating an archive that can be uploaded to AWS

Tests/AWSLambdaRuntimeTests/LambdaLocalServerTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import Testing
2222
extension LambdaRuntimeTests {
2323

2424
@Test("Local server respects LOCAL_LAMBDA_PORT environment variable")
25+
@available(LambdaSwift 2.0, *)
2526
func testLocalServerCustomPort() async throws {
2627
let customPort = 8080
2728

0 commit comments

Comments
 (0)