Skip to content

Commit e4c3574

Browse files
authored
Must include full path to Block.h
`swift build -Xcxx -I/usr/lib/swift` fails on Linux w/ ``` .../sourcekit-lsp/.build/checkouts/indexstore-db/lib/CIndexStoreDB/CIndexStoreDB.cpp:20:10: fatal error: 'Block.h' file not found #include <Block.h> ^~~~~~~~~ 1 error generated. ``` Need to add `-I/usr/lib/swift/Block` to make it work. Confirmed via https://github.com/apple/indexstore-db
1 parent 3ba4c1a commit e4c3574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ SourceKit-LSP is designed to build against the latest SwiftPM, so if you run int
3636
The C++ code in the index requires `libdispatch`, but unlike Swift code, it cannot find it automatically on Linux. You can work around this by adding a search path manually.
3737

3838
```sh
39-
$ swift build -Xcxx -I<path_to_swift_toolchain>/usr/lib/swift
39+
$ swift build -Xcxx -I<path_to_swift_toolchain>/usr/lib/swift -I<path_to_swift_toolchain>/usr/lib/swift/Block
4040
```
4141

4242
### Using the Generated Xcode Project

0 commit comments

Comments
 (0)