Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Sources/SWBUniversalPlatform/Specs/Swift.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,32 @@
Description = "Changes existential types to require explicit annotation with the `any` keyword.";
},

{
Name = "SWIFT_UPCOMING_FEATURE_INFER_ISOLATED_CONFORMANCES";
Type = Boolean;
DefaultValue = NO;
CommandLineArgs = {
YES = ( "-enable-upcoming-feature", "InferIsolatedConformances" );
NO = ();
};
DisplayName = "Infer Isolated Conformances";
Category = "Upcoming Features";
Description = "Infer conformances of global-actor isolated types as isolated to the same actor unless isolation is explicitly specified as `nonisolated`.";
},

{
Name = "SWIFT_UPCOMING_FEATURE_NONISOLATED_NONSENDING_BY_DEFAULT";
Type = Boolean;
DefaultValue = NO;
CommandLineArgs = {
YES = ( "-enable-upcoming-feature", "NonisolatedNonsendingByDefault" );
NO = ();
};
DisplayName = "Nonisolated Nonsending By Default";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should Nonsending be Non-sending? Not sure how we've been spelling this elsewhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's spelled as nonsending in the specifier.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be different in the title, though then there's also Nonisolated 😅

Category = "Upcoming Features";
Description = "Runs nonisolated async functions on the caller's actor by default unless the function is explicitly marked `@concurrent`.";
},

// Experimental features
{
Name = "SWIFT_EXPERIMENTAL_FEATURE_DEBUG_DESCRIPTION_MACRO";
Expand Down