Skip to content

Commit a4dc5bb

Browse files
authored
Merge pull request #496 from xedin/add-migrate-option-to-features-that-support-it
[Swift] Add migrate mode to a few upcoming flags that currently suppo…
2 parents bed73bb + 4ade115 commit a4dc5bb

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

Sources/SWBUniversalPlatform/Specs/Swift.xcspec

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -795,11 +795,17 @@
795795

796796
{
797797
Name = "SWIFT_UPCOMING_FEATURE_EXISTENTIAL_ANY";
798-
Type = Boolean;
799-
DefaultValue = NO;
798+
Type = Enumeration;
799+
Values = (
800+
Yes,
801+
Migrate,
802+
No,
803+
);
804+
DefaultValue = No;
800805
CommandLineArgs = {
801-
YES = ( "-enable-upcoming-feature", "ExistentialAny" );
802-
NO = ();
806+
Yes = ( "-enable-upcoming-feature", "ExistentialAny" );
807+
Migrate = ( "-enable-upcoming-feature", "ExistentialAny:migrate" );
808+
No = ();
803809
};
804810
DisplayName = "Require Existential any";
805811
Category = "Upcoming Features";
@@ -821,13 +827,19 @@
821827

822828
{
823829
Name = "SWIFT_UPCOMING_FEATURE_NONISOLATED_NONSENDING_BY_DEFAULT";
824-
Type = Boolean;
825-
DefaultValue = NO;
830+
Type = Enumeration;
831+
Values = (
832+
Yes,
833+
Migrate,
834+
No,
835+
);
836+
DefaultValue = No;
826837
CommandLineArgs = {
827-
YES = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault" );
828-
NO = ();
838+
Yes = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault" );
839+
Migrate = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault:migrate" );
840+
No = ();
829841
};
830-
DisplayName = "Nonisolated Nonsending By Default";
842+
DisplayName = "nonisolated(nonsending) By Default";
831843
Category = "Upcoming Features";
832844
Description = "Runs nonisolated async functions on the caller's actor by default unless the function is explicitly marked `@concurrent`.";
833845
},

0 commit comments

Comments
 (0)