<div dir="ltr"><div><br></div><div>I'm writing code for Windows/Cygwin port on my free time. There is no well documented information about that. Instead I'll give you some information and several links for you.</div><div><br></div><div>1. Cygwin port</div><div> Cygwin is a POSIX environment on Windows. Porting to Cygwin is relatively easer than Windows native. This is x86_64-unknown-windows-cygwin in llvm target name.</div><div> </div><div> Currently, you can build the swift compiler and standard library if you applying my 'informal' hacked patch and build manual.</div><div> </div><div> To-be tasks are verifying and sharing the build manual, porting the autolink-extract module, passing failed test code, etc.</div><div> </div><div><br></div><div>2. Window port</div><div> This is x86_64-pc-windows-msvc in llvm target name, so I call this 'Windows with MSVC library' when confusing with Cygwin - Windows with Cygwin DLL. Porting to Windows is harder than Cygwin. Swift source uses C++11 standard with some POSIX functions, GNU extension functions as well as platform specific codes for OS X or Linux, and the build script for Swift supposed to run on BASH shell. To compile the Swift source, we should use the Clang compiler for clang specific feature.</div><div> </div><div> Currently, there is a 'informal' compiler that barely compiles Hello.swift.</div><div> </div><div> To-be tasks are the solving problems, dllimport/dllexport problem for DLL, build script problem, plus all tasks of Cygwin's.</div><div><br></div><div>I'll give you related links in next post.</div><div><br></div><div>Han Sangjin</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-22 3:29 GMT+09:00 Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">CC'ing Han, the maintainer of the Cygwin port.<br>
<div><div class="h5"><br>
On Wed, Apr 20, 2016 at 10:59 PM, Joel Van Eenwyk via swift-dev<br>
<<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>> wrote:<br>
> Hi all,<br>
><br>
> I'm a very new user of Swift and interested in finding ways to contribute to<br>
> the project. I can happily work with the Linux port of the project, but I<br>
> have a lot of Windows development experience and would probably be most<br>
> useful there. Where can I find information about the current status of a<br>
> Windows port (if any)? Perhaps I'm blind but finding any 'official'<br>
> information about a Windows version has been quite tricky. :)<br>
><br>
> For background on me, I'm primarily a game programmer and the company I work<br>
> for (Havok) recently got acquired by Microsoft. Working on some open source<br>
> projects is just something I'm interested in exploring in my free time.<br>
><br>
> All the best,<br>
><br>
> --Joel<br>
><br>
</div></div>> _______________________________________________<br>
> swift-dev mailing list<br>
> <a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a><br>
> <a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</font></span></blockquote></div><br></div>