Skip to content

Commit 382fba5

Browse files
committed
[Swift] Add migrate mode to a few upcoming flags that currently support it
Add a third option (to complement yes/no) for some features that enables them in migration mode. Currently supported by: - `ExistentialAny` - `NonisolatedNonsendingByDefault` Resolves: rdar://145768088
1 parent 524037f commit 382fba5

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

Sources/SWBUniversalPlatform/Specs/Swift.xcspec

Lines changed: 20 additions & 8 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,11 +827,17 @@
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
};
830842
DisplayName = "Nonisolated Nonsending By Default";
831843
Category = "Upcoming Features";

0 commit comments

Comments
 (0)