docs: add links to download C compilers (#13984)

pull/13987/head
Nick Treleaven 2022-04-09 13:53:37 +01:00 committed by GitHub
parent 804f2f56d4
commit bf385d2ac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,8 @@ git clone https://github.com/vlang/v
cd v cd v
make make
``` ```
See [here](https://github.com/vlang/v/wiki/Installing-a-C-compiler-on-Linux-and-macOS)
for how to install the development tools.
### Windows: ### Windows:
You need `git`, and a C compiler like `tcc`, `gcc`, `clang` or `msvc`: You need `git`, and a C compiler like `tcc`, `gcc`, `clang` or `msvc`:
@ -38,6 +40,9 @@ 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 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). easy to install (V will download a prebuilt binary automatically).
For C compiler downloads and more info, see
[here](https://github.com/vlang/v/wiki/Installing-a-C-compiler-on-Windows).
It is recommended to add this folder to the PATH of your environment variables. It is recommended to add this folder to the PATH of your environment variables.
This can be done with the command `v.exe symlink`. This can be done with the command `v.exe symlink`.