You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SWBUniversalPlatform/Specs/Swift.xcspec
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -569,7 +569,22 @@
569
569
Category = "Upcoming Features";
570
570
Description = "Enables strict concurrency checking to produce warnings for possible data races. This is always 'complete' when in the Swift 6 language mode and produces errors instead of warnings.";
571
571
},
572
-
572
+
{
573
+
Name = "SWIFT_DEFAULT_ACTOR_ISOLATION";
574
+
Type = Enumeration;
575
+
Values = (
576
+
nonisolated,
577
+
MainActor
578
+
);
579
+
DefaultValue = "nonisolated";
580
+
CommandLineArgs = {
581
+
nonisolated = ();
582
+
MainActor = ( "-default-isolation=MainActor" );
583
+
};
584
+
DisplayName = "Default Actor Isolation";
585
+
Category = "Language";
586
+
Description = "Controls default actor isolation for unannotated code. When set to 'MainActor', `@MainActor` isolation will be inferred by default to mitigate false-positive data-race safety errors in sequential code.";
0 commit comments