Skip to content

Commit 46175b5

Browse files
committed
[Swift] Add a setting for InferIsolatedConformances upcoming feature
1 parent cd4fb4e commit 46175b5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Sources/SWBUniversalPlatform/Specs/Swift.xcspec

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,19 @@
806806
Description = "Changes existential types to require explicit annotation with the `any` keyword.";
807807
},
808808

809+
{
810+
Name = "SWIFT_UPCOMING_FEATURE_INFER_ISOLATED_CONFORMANCES";
811+
Type = Boolean;
812+
DefaultValue = NO;
813+
CommandLineArgs = {
814+
YES = ( "-enable-upcoming-feature", "InferIsolatedConformances" );
815+
NO = ();
816+
};
817+
DisplayName = "Infer Isolated Conformances";
818+
Category = "Upcoming Features";
819+
Description = "Infer conformances of global-actor isolated types as isolated to the same actor unless isolation is explicitly specified as `nonisolated`.";
820+
},
821+
809822
// Experimental features
810823
{
811824
Name = "SWIFT_EXPERIMENTAL_FEATURE_DEBUG_DESCRIPTION_MACRO";

0 commit comments

Comments
 (0)