Skip to content

Add features for -strict-concurrency compiler flag #1282

Open
@mjburghard

Description

@mjburghard

I am thinking about adding features to enable the three accepted combinations of -strict-concurrency=<value> and wanted to check if this is useful to anybody else.

My motivation: Configuring the copt using a wrapper macro or passing it as a command line flag is simple, but features allow to easily add/remove this on the whole workspace to e.g. produce datasets for adaption dashboards. A feature is just more convenient.

I propose the following names:

SWIFT_FEATURE_STRICT_CONCURRENCY_MINIMAL = "swift.strict_concurrency.minimal"
SWIFT_FEATURE_STRICT_CONCURRENCY_TARGETED = "swift.strict_concurrency.targeted"
SWIFT_FEATURE_STRICT_CONCURRENCY_COMPLETE = "swift.strict_concurrency.complete"

I should have some time to contribute this in the coming days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions