Help compiling libDispatch statically on Linux

Hi,

i recently build a small swift tool for our CI (just a small converter for generated reports).
I build this tool statically to not depend on any swift version.

Now we would also like to use that Tool on Linux. But there is a small Problem.
Since i use Foundation in it and Foundation needs libdispatch i can not build it statically because a static version of libdispatch is currently not contained in the Toolchain. Here is the bug ticket: https://bugs.swift.org/browse/SR-7039

I have tried checking out libdispatch myself but since my knowledge of cmake and these tools is pretty sparse i can not get it to build a static library.

Would somebody be able to help me with this?

Thanks in advance

Peter

1 Like