Skip to content

Commit 237f1a0

Browse files
committed
Swift: Add "Migrate" mode to some 6.2 language features
Follow-up to #496. Migration mode for these features was implemented soon after. (cherry picked from commit 7acb4c2)
1 parent 22c2118 commit 237f1a0

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

Sources/SWBUniversalPlatform/Specs/Swift.xcspec

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,10 +625,16 @@
625625
},
626626
{
627627
Name = "SWIFT_STRICT_MEMORY_SAFETY";
628-
Type = Boolean;
628+
Type = Enumeration;
629+
Values = (
630+
YES,
631+
MIGRATE,
632+
NO,
633+
);
629634
DefaultValue = "NO";
630635
CommandLineArgs = {
631636
YES = ( "-strict-memory-safety" );
637+
MIGRATE = ( "-strict-memory-safety:migrate" );
632638
NO = ();
633639
};
634640
DisplayName = "Strict Memory Safety";
@@ -820,10 +826,16 @@
820826

821827
{
822828
Name = "SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY";
823-
Type = Boolean;
829+
Type = Enumeration;
830+
Values = (
831+
YES,
832+
MIGRATE,
833+
NO,
834+
);
824835
DefaultValue = NO;
825836
CommandLineArgs = {
826837
YES = ( "-enable-upcoming-feature", "MemberImportVisibility" );
838+
MIGRATE = ( "-enable-upcoming-feature", "MemberImportVisibility:migrate" );
827839
NO = ();
828840
};
829841
DisplayName = "Member Import Visibility";
@@ -852,10 +864,16 @@
852864

853865
{
854866
Name = "SWIFT_UPCOMING_FEATURE_INFER_ISOLATED_CONFORMANCES";
855-
Type = Boolean;
867+
Type = Enumeration;
868+
Values = (
869+
YES,
870+
MIGRATE,
871+
NO,
872+
);
856873
DefaultValue = "$(SWIFT_APPROACHABLE_CONCURRENCY)";
857874
CommandLineArgs = {
858875
YES = ( "-enable-upcoming-feature", "InferIsolatedConformances" );
876+
MIGRATE = ( "-enable-upcoming-feature", "InferIsolatedConformances:migrate" );
859877
NO = ();
860878
};
861879
DisplayName = "Infer Isolated Conformances";

0 commit comments

Comments
 (0)