Swift on Linux: Make very first step work

后端 未结 5 834
灰色年华
灰色年华 2021-02-19 20:19

I am totally new to swift. It has just been released as open source for linux and I wanted to try it. This is on ubuntu 14.04. clang is installed as per prerequisites.

5条回答
  •  梦如初夏
    2021-02-19 21:01

    This is not really an answer -- I have the same problem as OP -- but SwiftShims is actually defined the module.map file in your file listing above:

    module SwiftShims {
      header "CoreFoundationShims.h"
      header "FoundationShims.h"
      header "GlobalObjects.h"
      header "HeapObject.h"
      header "LibcShims.h"
      header "RefCount.h"
      header "RuntimeShims.h"
      header "RuntimeStubs.h"
      header "SwiftStddef.h"
      header "SwiftStdint.h"
      header "UnicodeShims.h"
      export *
    }
    

    https://github.com/apple/swift/blob/8d9ef80304d7b36e13619ea50e6e76f3ec9221ba/stdlib/public/SwiftShims/module.map

提交回复
热议问题