Skip to content

Commit 63c7f50

Browse files
authored
Merge pull request #473 from xedin/rdar-150397637
[Swift] Add missing upcoming feature flags
2 parents 2d81b41 + 9485aad commit 63c7f50

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Sources/SWBUniversalPlatform/Specs/Swift.xcspec

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,32 @@
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+
822+
{
823+
Name = "SWIFT_UPCOMING_FEATURE_NONISOLATED_NONSENDING_BY_DEFAULT";
824+
Type = Boolean;
825+
DefaultValue = NO;
826+
CommandLineArgs = {
827+
YES = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault" );
828+
NO = ();
829+
};
830+
DisplayName = "Nonisolated Nonsending By Default";
831+
Category = "Upcoming Features";
832+
Description = "Runs nonisolated async functions on the caller's actor by default unless the function is explicitly marked `@concurrent`.";
833+
},
834+
809835
// Experimental features
810836
{
811837
Name = "SWIFT_EXPERIMENTAL_FEATURE_DEBUG_DESCRIPTION_MACRO";

0 commit comments

Comments
 (0)