@@ -26,7 +26,7 @@ if let environmentPath = Context.environment["DISPATCH_INCLUDE_PATH"] {
26
26
. unsafeFlags( [
27
27
" -I/usr/lib/swift " ,
28
28
" -I/usr/lib/swift/Block "
29
- ] , . when( platforms: [ . linux, . android ] ) )
29
+ ] , . when( platforms: [ . linux] ) )
30
30
)
31
31
if let sdkRoot = Context . environment [ " SDKROOT " ] {
32
32
dispatchIncludeFlags. append ( . unsafeFlags( [
@@ -245,7 +245,8 @@ let package = Package(
245
245
" BlockRuntime " ,
246
246
" CMakeLists.txt "
247
247
] ,
248
- cSettings: coreFoundationBuildSettings
248
+ cSettings: coreFoundationBuildSettings,
249
+ linkerSettings: [ . linkedLibrary( " log " , . when( platforms: [ . android] ) ) ]
249
250
) ,
250
251
. target(
251
252
name: " BlocksRuntime " ,
@@ -262,7 +263,7 @@ let package = Package(
262
263
name: " _CFXMLInterface " ,
263
264
dependencies: [
264
265
" CoreFoundation " ,
265
- . target( name: " Clibxml2 " , condition: . when( platforms: [ . linux] ) ) ,
266
+ . target( name: " Clibxml2 " , condition: . when( platforms: [ . linux, . android ] ) ) ,
266
267
] ,
267
268
path: " Sources/_CFXMLInterface " ,
268
269
exclude: [
@@ -275,7 +276,7 @@ let package = Package(
275
276
name: " _CFURLSessionInterface " ,
276
277
dependencies: [
277
278
" CoreFoundation " ,
278
- . target( name: " Clibcurl " , condition: . when( platforms: [ . linux] ) ) ,
279
+ . target( name: " Clibcurl " , condition: . when( platforms: [ . linux, . android ] ) ) ,
279
280
] ,
280
281
path: " Sources/_CFURLSessionInterface " ,
281
282
exclude: [
@@ -348,7 +349,7 @@ let package = Package(
348
349
" FoundationNetworking " ,
349
350
" XCTest " ,
350
351
" Testing " ,
351
- . target( name: " xdgTestHelper " , condition: . when( platforms: [ . linux] ) )
352
+ . target( name: " xdgTestHelper " , condition: . when( platforms: [ . linux, . android ] ) )
352
353
] ,
353
354
resources: [
354
355
. copy( " Foundation/Resources " )
0 commit comments