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

Move warning about strict concurrency into PlatformChecks.swift #289

Conversation

simonjbeaumont
Copy link
Collaborator

Motivation

In #191 we enabled strict concurrency in CI. We also attempted to include it conditionally as part of a local development flow. However, the #warning (that strict concurrency was enabled) added to Package.swift was firing unconditionally because it was, itself, behind a runtime conditional.

Modifications

Now if SWIFT_OPENAPI_STRICT_CONCURRENCY=true then we will add a define to the swiftSettings and we will move the #warning to the existing PlatformChecks.swift.

Result

Opening Xcode with SWIFT_OPENAPI_STRICT_CONCURRENCY=true will enable strict concurrency warnings locally. Opening Xcode without this will no longer produce a misleading warning.

Test Plan

Tested locally.

@simonjbeaumont simonjbeaumont marked this pull request as ready for review September 21, 2023 09:42
Copy link
Contributor

@czechboy0 czechboy0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@simonjbeaumont simonjbeaumont merged commit 0de1799 into apple:main Sep 21, 2023
@czechboy0 czechboy0 added the semver/none No version bump required. label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants