[swift-dev] How to run Swift on Windows

Kazuki Ohara kazuki.ohara at gmail.com
Thu Dec 21 11:13:02 CST 2017


Hi Eric,

Did you try git config --global core.autocrlf true ?
https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration

It appends CR+LF to end of all lines when you checkout source files.

2017-12-21 9:06 GMT+09:00 Eric Wing <ewmailing at gmail.com>:

> >
> > git clone https://github.com/apple/swift.git
> > cd swift
> > git checkout swift-4.0.2-RELEASE
> > patch -p1 < swift.patch
> > cd ..
>
> I'm having trouble applying the patches. I think it is due to the
> Windows line endings. Is there an easy way to work around this to
> apply the patches?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20171222/f824297d/attachment.html>


More information about the swift-dev mailing list