Skip to content

Commit 32cd74f

Browse files
committed
Fix include path to Dispatch
1 parent 9118940 commit 32cd74f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Package.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ let coreFoundationBuildSettings: [CSetting] = [
3030
"\(Context.packageDirectory)/Sources/CoreFoundation/internalInclude/CoreFoundation_Prefix.h",
3131
// /EHsc for Windows
3232
]),
33-
.unsafeFlags(["-I/usr/lib/swift/Block"], .when(platforms: [.linux, .android])) // dispatch
33+
.unsafeFlags(["-I/usr/lib/swift"], .when(platforms: [.linux, .android])), // dispatch
34+
.unsafeFlags(["-I/usr/lib/swift/Block"], .when(platforms: [.linux, .android])) // Block.h
3435
]
3536

3637
// For _CFURLSessionInterface, _CFXMLInterface
@@ -58,7 +59,8 @@ let interfaceBuildSettings: [CSetting] = [
5859
"-fcf-runtime-abi=swift"
5960
// /EHsc for Windows
6061
]),
61-
.unsafeFlags(["-I/usr/lib/swift/Block"], .when(platforms: [.linux, .android])) // dispatch
62+
.unsafeFlags(["-I/usr/lib/swift"], .when(platforms: [.linux, .android])), // dispatch
63+
.unsafeFlags(["-I/usr/lib/swift/Block"], .when(platforms: [.linux, .android])) // Block.h
6264
]
6365

6466
let swiftBuildSettings: [SwiftSetting] = [

0 commit comments

Comments
 (0)