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

doc: add an install from source section in docs.md

This commit is contained in:
Delyan Angelov 2021-01-03 07:38:03 +02:00
parent 681ff3cc0d
commit f215620d83
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -15,6 +15,24 @@ The language promotes writing simple and clear code with minimal abstraction.
Despite being simple, V gives the developer a lot of power.
Anything you can do in other languages, you can do in V.
## Install from source
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`:
```bash
git clone https://github.com/vlang/v && cd v && make
```
### Windows:
You need `git`, and a C compiler like `gcc` or `msvc`:
```bash
git clone https://github.com/vlang/v
cd v
make
```
## Table of Contents
<table>