1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

readme: windows build instructions

This commit is contained in:
Alexander Medvednikov 2019-06-28 21:36:37 +02:00 committed by GitHub
parent 37e2da9d23
commit 6f79cb20cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,9 +88,23 @@ make
V works great on Windows Subsystem for Linux. The instructions are the same as above.
If you want to build v.exe on Windows without WSL, you will need Visual Studio. Microsoft doesn't make it easy for developers. Mingw-w64 could suffice, but if you plan to develop UI and graphical apps, VS is your only option.
If you want to build v.exe on Windows without WSL, you can use MinGW-w64 or Visual Studio.
## MinGW-w64
![Download](https://downloads.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe?r=&ts=1561736169&use_mirror=gigenet) and install MinGW-w64.
Make sure the `C:/mingw-w64/bin` directory is in system's PATH.
```bash
# You can clone V anywhere
git clone https://github.com/vlang/v
cd v/compiler
# Download the V compiler's source translated to C
curl -sO https://raw.githubusercontent.com/vlang/vc/master/v.c
gcc -std=gnu11 -w -o v.exe v.c # Build it with GCC
```
V temporarily can't be compiled with Visual Studio. This will be fixed asap.
### Testing