swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
Apache License 2.0
1.14k stars 104 forks source link

Add guards for code that relies on _Concurrency to allow compilation with Xcode 13 #237

Closed programmarchy closed 3 years ago

programmarchy commented 3 years ago

Add extra code guards so that Xcode 13 will compile this package on macOS 11, which does not have symbols for Concurrency yet.

Motivation:

Allow compilation with Xcode 13

Modifications:

Changed code guards #if compiler(>=5.5) to #if compiler(>=5.5) && canImport(_Concurrency)

Got the idea from swift-server/swift-service-lifecycle#110

Result:

Successfully compiles with Xcode 13

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

swift-server-bot commented 3 years ago

Can one of the admins verify this patch?

ktoso commented 3 years ago

This looks right 👍

tomerd commented 3 years ago

@swift-server-bot test this please

tomerd commented 3 years ago

@swift-server-bot test this please

tomerd commented 3 years ago

thanks @programmarchy: https://github.com/swift-server/swift-aws-lambda-runtime/releases/tag/0.5.2