indexstore-db icon indicating copy to clipboard operation
indexstore-db copied to clipboard

indexstore-db doesn't build on Windows

Open dschaefer2 opened this issue 8 months ago • 3 comments

When building with SwiftPM, I get the following compile error:

C:\Users\dschaefer2\swift\src\indexstore-db\lib\Support\Logging.cpp:19:10: fatal error: 'dispatch/dispatch.h' file not found 19 | #include <dispatch/dispatch.h> | ^~~~~~~~~~~~~~~~~~~~~

This also breaks building sourcekit-lsp on Windows.

Tested with the 6.1 toolchain building source from main.

dschaefer2 avatar May 09 '25 00:05 dschaefer2

Unfortunately this is expected today :( See https://github.com/swiftlang/sourcekit-lsp/blob/main/CONTRIBUTING.md#windows

bnbarham avatar May 09 '25 00:05 bnbarham

I'll leave open since ideally we would improve things here.

bnbarham avatar May 09 '25 00:05 bnbarham

Ben also mentions this is a problem on Linux as well. I need to understand what changes needs to be done to the toolset to add in these paths automatically.

dschaefer2 avatar May 09 '25 01:05 dschaefer2