Re: [swift-evolution] Is it possible to compile swift code to dynamic library ?

2017-02-10 Thread Jean-Daniel via swift-evolution
This is what Xcode do when it build a framework. Note that your application while have to link on the Swift runtime though. > Le 9 févr. 2017 à 07:53, Zheng Ping via swift-evolution > a écrit : > > > Compile swift code to dynamic library(a *.so file which is compatible with > C), and let th

Re: [swift-evolution] Is it possible to compile swift code to dynamic library ?

2017-02-09 Thread Derrick Ho via swift-evolution
If you use the "swiftc" command it will create an executable. Maybe there is a command in there to create linker files which you can offer to your c project. Any one on this threat super knowledgeable on the "swiftc" command? On Thu, Feb 9, 2017 at 1:53 AM Zheng Ping via swift-evolution < swift-ev

[swift-evolution] Is it possible to compile swift code to dynamic library ?

2017-02-08 Thread Zheng Ping via swift-evolution
Compile swift code to dynamic library(a *.so file which is compatible with C), and let the *.so file can be linked directly by a pure C project. -- with kind regards ___ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mail