Skip to content

On Linux, must include full path to Block.h #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2019
Merged

On Linux, must include full path to Block.h #96

merged 1 commit into from
Apr 4, 2019

Conversation

chiroptical
Copy link
Contributor

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.

I needed to add -I/usr/lib/swift/Block to make it work. This change make the documentation here consistent with https://github.com/apple/indexstore-db.

`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
@chiroptical chiroptical requested a review from benlangmuir as a code owner April 4, 2019 20:28
@benlangmuir benlangmuir merged commit 2b695f0 into swiftlang:master Apr 4, 2019
@chiroptical
Copy link
Contributor Author

@benlangmuir I should mention that with Swift 5, I think this needs to be -Xcxx -I/usr/lib/swift/Block.

@benlangmuir
Copy link
Contributor

@barrymoo ah, I think that should have been needed all along, but I didn't notice when I reviewed this. Could you update it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants