@@ -20,6 +20,7 @@ let coreFoundationBuildSettings: [CSetting] = [
2020 " -Wno-unused-variable " ,
2121 " -Wno-unused-function " ,
2222 " -Wno-microsoft-enum-forward-reference " ,
23+ " -Wno-int-conversion " ,
2324 " -fconstant-cfstrings " ,
2425 " -fexceptions " , // TODO: not on OpenBSD
2526 " -fdollars-in-identifiers " ,
@@ -29,13 +30,12 @@ let coreFoundationBuildSettings: [CSetting] = [
2930 " \( Context . packageDirectory) /Sources/CoreFoundation/internalInclude/CoreFoundation_Prefix.h " ,
3031 // /EHsc for Windows
3132 ] ) ,
32- . unsafeFlags( [ " -I/usr/lib/swift " ] , . when( platforms: [ . linux, . android] ) ) // dispatch
33+ . unsafeFlags( [ " -I/usr/lib/swift/Block " ] , . when( platforms: [ . linux, . android] ) ) // dispatch
3334]
3435
3536// For _CFURLSessionInterface, _CFXMLInterface
3637let interfaceBuildSettings : [ CSetting ] = [
3738 . headerSearchPath( " ../CoreFoundation/internalInclude " ) ,
38- . headerSearchPath( " ../CoreFoundation/include " ) ,
3939 . define( " DEBUG " , . when( configuration: . debug) ) ,
4040 . define( " CF_BUILDING_CF " ) ,
4141 . define( " DEPLOYMENT_ENABLE_LIBDISPATCH " ) ,
@@ -50,14 +50,15 @@ let interfaceBuildSettings: [CSetting] = [
5050 " -Wno-unused-variable " ,
5151 " -Wno-unused-function " ,
5252 " -Wno-microsoft-enum-forward-reference " ,
53+ " -Wno-int-conversion " ,
5354 " -fconstant-cfstrings " ,
5455 " -fexceptions " , // TODO: not on OpenBSD
5556 " -fdollars-in-identifiers " ,
5657 " -fno-common " ,
5758 " -fcf-runtime-abi=swift "
5859 // /EHsc for Windows
5960 ] ) ,
60- . unsafeFlags( [ " -I/usr/lib/swift " ] , . when( platforms: [ . linux, . android] ) ) // dispatch
61+ . unsafeFlags( [ " -I/usr/lib/swift/Block " ] , . when( platforms: [ . linux, . android] ) ) // dispatch
6162]
6263
6364let swiftBuildSettings : [ SwiftSetting ] = [
@@ -78,11 +79,11 @@ let package = Package(
7879 dependencies: [
7980 . package (
8081 url: " https://github.com/apple/swift-foundation-icu " ,
81- from: " 0.0.7 "
82+ from: " 0.0.8 "
8283 ) ,
8384 . package (
8485 url: " https://github.com/apple/swift-foundation " ,
85- revision: " 3297fb33b49ba2d1161ba12757891c7b91c73a3e "
86+ revision: " ef8a7787c355edae3c142e4dff8767d05a32c51f "
8687 ) ,
8788 ] ,
8889 targets: [
@@ -91,7 +92,7 @@ let package = Package(
9192 dependencies: [
9293 . product( name: " FoundationEssentials " , package : " swift-foundation " ) ,
9394 . product( name: " FoundationInternationalization " , package : " swift-foundation " ) ,
94- " _CoreFoundation "
95+ " CoreFoundation "
9596 ] ,
9697 path: " Sources/Foundation " ,
9798 swiftSettings: swiftBuildSettings
@@ -100,8 +101,8 @@ let package = Package(
100101 name: " FoundationXML " ,
101102 dependencies: [
102103 . product( name: " FoundationEssentials " , package : " swift-foundation " ) ,
103- . targetItem ( name : " Foundation " , condition : nil ) ,
104- " _CoreFoundation " ,
104+ " Foundation " ,
105+ " CoreFoundation " ,
105106 " _CFXMLInterface "
106107 ] ,
107108 path: " Sources/FoundationXML " ,
@@ -111,25 +112,26 @@ let package = Package(
111112 name: " FoundationNetworking " ,
112113 dependencies: [
113114 . product( name: " FoundationEssentials " , package : " swift-foundation " ) ,
114- . targetItem ( name : " Foundation " , condition : nil ) ,
115- " _CoreFoundation " ,
115+ " Foundation " ,
116+ " CoreFoundation " ,
116117 " _CFURLSessionInterface "
117118 ] ,
118119 path: " Sources/FoundationNetworking " ,
119120 swiftSettings: swiftBuildSettings
120121 ) ,
121122 . target(
122- name: " _CoreFoundation " ,
123+ name: " CoreFoundation " ,
123124 dependencies: [
124125 . product( name: " _FoundationICU " , package : " swift-foundation-icu " ) ,
125126 ] ,
126127 path: " Sources/CoreFoundation " ,
128+ exclude: [ " BlockRuntime " ] ,
127129 cSettings: coreFoundationBuildSettings
128130 ) ,
129131 . target(
130132 name: " _CFXMLInterface " ,
131133 dependencies: [
132- " _CoreFoundation " ,
134+ " CoreFoundation " ,
133135 " Clibxml2 " ,
134136 ] ,
135137 path: " Sources/_CFXMLInterface " ,
@@ -138,7 +140,7 @@ let package = Package(
138140 . target(
139141 name: " _CFURLSessionInterface " ,
140142 dependencies: [
141- " _CoreFoundation " ,
143+ " CoreFoundation " ,
142144 " Clibcurl " ,
143145 ] ,
144146 path: " Sources/_CFURLSessionInterface " ,
@@ -163,15 +165,15 @@ let package = Package(
163165 . executableTarget(
164166 name: " plutil " ,
165167 dependencies: [
166- . targetItem ( name : " Foundation " , condition : nil )
168+ " Foundation "
167169 ]
168170 ) ,
169171 . executableTarget(
170172 name: " xdgTestHelper " ,
171173 dependencies: [
172- . targetItem ( name : " Foundation " , condition : nil ) ,
173- . targetItem ( name : " FoundationXML " , condition : nil ) ,
174- . targetItem ( name : " FoundationNetworking " , condition : nil )
174+ " Foundation " ,
175+ " FoundationXML " ,
176+ " FoundationNetworking "
175177 ]
176178 ) ,
177179 . target(
@@ -181,16 +183,16 @@ let package = Package(
181183 // We believe Foundation is the only project that needs to take this rather drastic measure.
182184 name: " XCTest " ,
183185 dependencies: [
184- . targetItem ( name : " Foundation " , condition : nil )
186+ " Foundation "
185187 ] ,
186188 path: " Sources/XCTest "
187189 ) ,
188190 . testTarget(
189191 name: " TestFoundation " ,
190192 dependencies: [
191- . targetItem ( name : " Foundation " , condition : nil ) ,
192- . targetItem ( name : " FoundationXML " , condition : nil ) ,
193- . targetItem ( name : " FoundationNetworking " , condition : nil ) ,
193+ " Foundation " ,
194+ " FoundationXML " ,
195+ " FoundationNetworking " ,
194196 . targetItem( name: " XCTest " , condition: . when( platforms: [ . linux] ) ) ,
195197 " xdgTestHelper "
196198 ] ,
0 commit comments