Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

programmarchy
Copy link

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

This allows Xcode 13 to still compile on macOS 11 which does not have symbols for Concurrency yet
See swift-server/swift-service-lifecycle#110
@swift-server-bot
Copy link

Can one of the admins verify this patch?

8 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@programmarchy programmarchy changed the title Add guards for code that relies on _Concurrency Add guards for code that relies on _Concurrency to allow compilation with Xcode 13 Oct 4, 2021
@ktoso
Copy link
Contributor

ktoso commented Oct 4, 2021

This looks right 👍

@tomerd
Copy link
Contributor

tomerd commented Oct 5, 2021

@swift-server-bot test this please

@tomerd
Copy link
Contributor

tomerd commented Oct 5, 2021

@swift-server-bot test this please

@tomerd tomerd added the patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1) label Oct 5, 2021
@tomerd tomerd merged commit 699ada1 into swift-server:v0 Oct 5, 2021
@tomerd
Copy link
Contributor

tomerd commented Oct 5, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants