Skip to content

[Swift] Add migrate mode to a few upcoming flags that currently suppo… #496

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

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions Sources/SWBUniversalPlatform/Specs/Swift.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -795,11 +795,17 @@

{
Name = "SWIFT_UPCOMING_FEATURE_EXISTENTIAL_ANY";
Type = Boolean;
DefaultValue = NO;
Type = Enumeration;
Values = (
Yes,
Migrate,
No,
);
DefaultValue = No;
CommandLineArgs = {
YES = ( "-enable-upcoming-feature", "ExistentialAny" );
NO = ();
Yes = ( "-enable-upcoming-feature", "ExistentialAny" );
Migrate = ( "-enable-upcoming-feature", "ExistentialAny:migrate" );
No = ();
};
DisplayName = "Require Existential any";
Category = "Upcoming Features";
Expand All @@ -821,13 +827,19 @@

{
Name = "SWIFT_UPCOMING_FEATURE_NONISOLATED_NONSENDING_BY_DEFAULT";
Type = Boolean;
DefaultValue = NO;
Type = Enumeration;
Values = (
Yes,
Migrate,
No,
);
DefaultValue = No;
CommandLineArgs = {
YES = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault" );
NO = ();
Yes = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault" );
Migrate = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault:migrate" );
No = ();
};
DisplayName = "Nonisolated Nonsending By Default";
DisplayName = "nonisolated(nonsending) By Default";
Category = "Upcoming Features";
Description = "Runs nonisolated async functions on the caller's actor by default unless the function is explicitly marked `@concurrent`.";
},
Expand Down