Skip to content

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