readme: windows build instructions
parent
37e2da9d23
commit
6f79cb20cd
18
README.md
18
README.md
|
@ -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
|
||||
|
||||
 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue