Swift 3.0 - How to build Sourcekit and Sourcekitte

2019-09-06 01:40发布

What are the steps in building Sourcekit and Sourcekitten for the stable release version of Swift 3.0? Thanks in advance.

Note: Dependencies and other tools for building are already installed as per https://github.com/apple/swift

1条回答
smile是对你的礼貌
2楼-- · 2019-09-06 02:09

This is duplicate to Building Swift SourceKit on Linux

Updated Nov.24, 2016.

Build Sourcekit

The official branch of swift may still have the issue https://bugs.swift.org/browse/SR-1676. But Norio Nomura maintained a docker building environment here https://github.com/norio-nomura/docker-sourcekit-builder/

If you don't want to build it yourself, just download the package with sourcekit https://github.com/norio-nomura/docker-sourcekit-builder/releases

You may have to put libsourcekitdInProc.so under lib directory of this package into your lib path, or the lib directory into your LD_LIBRARY_PATH

Build SourceKitten

SourceKitten has Linux support now. Download the git source code and use swift build.

查看更多
登录 后发表回答