@@ -4,8 +4,9 @@ import PackageDescription
44import Foundation
55
66
7+ /* ⚠️ Do not use the concurrency check flags in a release! */
78let noSwiftSettings : [ SwiftSetting ] = [ ]
8- let concurrencySwiftSettings : [ SwiftSetting ] = [ . unsafeFlags( [ " -Xfrontend " , " -warn-concurrency " , " -Xfrontend " , " -enable-actor-data-race-checks " ] ) ]
9+ // let concurrencySwiftSettings: [SwiftSetting] = [.unsafeFlags(["-Xfrontend", "-warn-concurrency", "-Xfrontend", "-enable-actor-data-race-checks"])]
910
1011
1112/* Detect if we need the eXtenderZ.
@@ -103,13 +104,13 @@ let package = Package(
103104 } ( ) , swiftSettings: noSwiftSettings) )
104105
105106 /* Some complex macros exported as functions to be used in Swift. */
106- res. append ( . target( name: " CMacroExports " , swiftSettings: concurrencySwiftSettings ) )
107+ res. append ( . target( name: " CMacroExports " , swiftSettings: noSwiftSettings ) )
107108 if useXtenderZ {
108- res. append ( . target( name: " CNSTaskHelptender " , dependencies: [ . product( name: " eXtenderZ-static " , package : " eXtenderZ " ) ] , swiftSettings: concurrencySwiftSettings ) )
109+ res. append ( . target( name: " CNSTaskHelptender " , dependencies: [ . product( name: " eXtenderZ-static " , package : " eXtenderZ " ) ] , swiftSettings: noSwiftSettings ) )
109110 }
110111 if needsGNUSourceExports {
111- res. append ( . target( name: " CGNUSourceExports " , swiftSettings: concurrencySwiftSettings ) )
112- res. append ( . target( name: " CGNUSourceExportsForTests " , swiftSettings: concurrencySwiftSettings ) )
112+ res. append ( . target( name: " CGNUSourceExports " , swiftSettings: noSwiftSettings ) )
113+ res. append ( . target( name: " CGNUSourceExportsForTests " , swiftSettings: noSwiftSettings ) )
113114 }
114115
115116 return res
0 commit comments