Update 'Develop on Windows' guidelines (#9519)

This commit is contained in:
Simon Brandeis 2021-01-12 10:15:16 +01:00 committed by GitHub
parent a051d8928a
commit 3b67c5abb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,11 +328,18 @@ for more information.
### Develop on Windows ### Develop on Windows
On windows, you need to configure git to transform Windows `CRLF` line endings to Linux `LF` line endings:
`git config core.autocrlf input`
One way one can run the make command on Window is to pass by MSYS2: One way one can run the make command on Window is to pass by MSYS2:
1. [Download MSYS2](https://www.msys2.org/), we assume to have it installed in C:\msys64 1. [Download MSYS2](https://www.msys2.org/), we assume to have it installed in C:\msys64
2. Open the command line C:\msys64\msys2.exe (it should be available from the start menu) 2. Open the command line C:\msys64\msys2.exe (it should be available from the start menu)
3. Run in the shell: `pacman -Syu` and install make with `pacman -S make` 3. Run in the shell: `pacman -Syu` and install make with `pacman -S make`
4. Add `C:\msys64\usr\bin` to your PATH environment variable.
You can now use `make` from any terminal (Powershell, cmd.exe, etc) 🎉
### Syncing forked master with upstream (HuggingFace) master ### Syncing forked master with upstream (HuggingFace) master