Skip to content

Commit 80c1bf0

Browse files
authored
Refinements to feature flags (#156)
refinements to feature flags
1 parent 55cb4fb commit 80c1bf0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Package.swift

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import PackageDescription
55

66
/// Bug alert! Don't move these constants to the end of the file, or they won't take effect!
77
/// https://github.com/apple/swift-package-manager/issues/6597
8+
/// Not all of these features are enabled on the version of Swift that Penny is deployed with.
89
let upcomingFeaturesSwiftSettings: [SwiftSetting] = [
910
/// https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md
1011
/// Require `any` for existential types.
@@ -30,14 +31,20 @@ let upcomingFeaturesSwiftSettings: [SwiftSetting] = [
3031
/// Objc, which we don't use.
3132
.enableUpcomingFeature("ImportObjcForwardDeclarations"),
3233

33-
/// Currently causes errors on nightlies. We'll reenable it later.
3434
/// https://github.com/apple/swift-evolution/blob/main/proposals/0409-access-level-on-imports.md
35+
/// Currently causes errors on nightlies. We'll reenable it later.
3536
/// .enableUpcomingFeature("InternalImportsByDefault"),
3637

3738
/// https://github.com/apple/swift-evolution/blob/main/proposals/0411-isolated-default-values.md
39+
/// Data-race-free initial values for stored properties.
3840
.enableUpcomingFeature("IsolatedDefaultValues"),
3941

42+
/// https://github.com/apple/swift-evolution/blob/main/proposals/0412-strict-concurrency-for-global-variables.md
43+
/// Enable automatic safety features for global (and some local) variables.
44+
.enableUpcomingFeature("GlobalConcurrency"),
45+
4046
/// https://github.com/apple/swift-evolution/blob/main/proposals/0413-typed-throws.md
47+
/// Enable the full potential of typed throws.
4148
.enableUpcomingFeature("FullTypedThrows")
4249
]
4350

0 commit comments

Comments
 (0)