From 91940cf26f0c5266102239be3f2c65f2d92ca7d2 Mon Sep 17 00:00:00 2001 From: Stuart Montgomery Date: Mon, 9 Oct 2023 14:31:13 -0500 Subject: [PATCH] Switch from unsafeFlags to enableExperimentalFeature to enable strict concurrency checking --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 2aa95ecf4..cdc44978f 100644 --- a/Package.swift +++ b/Package.swift @@ -111,7 +111,6 @@ extension Array where Element == PackageDescription.SwiftSetting { static var packageSettings: Self { [ .unsafeFlags([ - "-strict-concurrency=complete", "-require-explicit-sendable", "-Xfrontend", "-define-availability", "-Xfrontend", "_clockAPI:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0", @@ -119,6 +118,7 @@ extension Array where Element == PackageDescription.SwiftSetting { "-Xfrontend", "-define-availability", "-Xfrontend", "_regexAPI:macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0", "-Xfrontend", "-define-availability", "-Xfrontend", "_swiftVersionAPI:macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0", ]), + .enableExperimentalFeature("StrictConcurrency"), .enableUpcomingFeature("ExistentialAny"), .define("SWT_TARGET_OS_APPLE", .when(platforms: [.macOS, .iOS, .macCatalyst, .watchOS, .tvOS, .visionOS])), ]