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 features for -strict-concurrency compiler flag #1282

Open
mjburghard opened this issue Jul 1, 2024 · 1 comment
Open

Add features for -strict-concurrency compiler flag #1282

mjburghard opened this issue Jul 1, 2024 · 1 comment

Comments

@mjburghard
Copy link
Contributor

mjburghard commented Jul 1, 2024

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.

@mjburghard
Copy link
Contributor Author

Opened a draft #1284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant