docs.md: use `make.bat -tcc` under Windows. (#8555)

pull/8639/head
Charles WANG 2021-02-07 18:53:26 +08:00 committed by GitHub
parent bfd0bd1fb4
commit 13350681dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -20,18 +20,23 @@ The major way to get the latest and greatest V, is to __install it from source__
It is __easy__, and it usually takes __only a few seconds__.
### Linux, macOS, FreeBSD, etc:
You need `git`, a C compiler like `gcc` or `clang`, and `make`:
You need `git`, and a C compiler like `tcc`, `gcc` or `clang`, and `make`:
```bash
git clone https://github.com/vlang/v && cd v && make
git clone https://github.com/vlang/v
cd v
make
```
### Windows:
You need `git`, and a C compiler like `gcc` or `msvc`:
You need `git`, and a C compiler like `tcc`, `gcc`, `clang` or `msvc`:
```bash
git clone https://github.com/vlang/v
cd v
make
make.bat -tcc
```
NB: You can also pass one of `-gcc`, `-msvc`, `-clang` to `make.bat` instead,
if you do prefer to use a different C compiler, but -tcc is small, fast, and
easy to install (V will download a prebuilt binary automatically).
### Android
Running V graphical apps on Android is also possible via [vab](https://github.com/vlang/vab).