Swift Linux. Error: there is no such module "Sending",

I use Ubuntu 15.10 I compiled swift-corelibs-libdispatch , we get the file libdispatch.so But still, if I use "import send", I get the error "there is no such module" Send "

How to add this module to Swift?

+5
source share
1 answer

One way to achieve this is to install the system module for libdispatch and use swift build . See https://github.com/apple/swift-package-manager/blob/13d682a63ea01246dd119cd4cf5c8d90c030566d/Documentation/SystemModules.md on how to use system modules. This question, Importing a Swift module using the C library , may also come in handy.

I am sure there are other ways. You should be able to use a swift interpreter or a fast compiler ( swiftc ), but I can't figure out how to do it from my head.

+2
source

Source: https://habr.com/ru/post/1239695/


All Articles