mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
readme: new simpler instructions
This commit is contained in:
parent
5b7a1e84a4
commit
882700dd1b
@ -54,7 +54,7 @@ You'll need Clang or GCC. On macOS run `xcode-select --install` if you don't hav
|
|||||||
```bash
|
```bash
|
||||||
# You can clone V anywhere
|
# You can clone V anywhere
|
||||||
git clone https://github.com/vlang/v
|
git clone https://github.com/vlang/v
|
||||||
cd v/compiler
|
cd v
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
Or build without make:
|
Or build without make:
|
||||||
@ -66,20 +66,18 @@ cc -std=gnu11 -w -o v v.c # Build it with Clang or GCC
|
|||||||
./v -o v . # Build the compiler again to make sure it works
|
./v -o v . # Build the compiler again to make sure it works
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it! Now you have a V executable at `v/compiler/v`.
|
That's it! Now you have a V executable at `[path to V repo]/v`.
|
||||||
|
|
||||||
You can create a symlink so that it's globally available:
|
You can create a symlink so that it's globally available:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo ln -s [path to V repo]/compiler/v /usr/local/bin/v
|
sudo ln -s [path to V repo]/v /usr/local/bin/v
|
||||||
```
|
```
|
||||||
|
|
||||||
V is being constantly updated. To update V, simply run
|
V is being constantly updated. To update V, simply run
|
||||||
|
|
||||||
```
|
```
|
||||||
git pull origin master
|
git pull origin master
|
||||||
cd compiler/
|
|
||||||
make clean
|
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user