mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Update README.md
This commit is contained in:
parent
90f33fc7b3
commit
2dccdd347f
10
README.md
10
README.md
@ -60,10 +60,10 @@ make
|
|||||||
Or build without make:
|
Or build without make:
|
||||||
```bash
|
```bash
|
||||||
# Download the V compiler's source translated to C
|
# Download the V compiler's source translated to C
|
||||||
curl -sO https://raw.githubusercontent.com/vlang/vc/master/v.c
|
curl -O https://raw.githubusercontent.com/vlang/vc/master/v.c
|
||||||
cc -std=gnu11 -w -o v v.c # Build it with Clang or GCC
|
cc -std=gnu11 -w -o v v.c # Build it with Clang or GCC
|
||||||
./v -o v . # Use the resulting V binary to build V from V source
|
./v -o v compiler # Use the resulting V binary to build V from V source
|
||||||
./v -o v . # Build the compiler again to make sure it works
|
./v -o v compiler # Build the compiler again to make sure it works
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it! Now you have a V executable at `[path to V repo]/v`.
|
That's it! Now you have a V executable at `[path to V repo]/v`.
|
||||||
@ -99,7 +99,7 @@ Make sure the `C:/mingw-w64/bin` directory is in system's PATH.
|
|||||||
git clone https://github.com/vlang/v
|
git clone https://github.com/vlang/v
|
||||||
cd v
|
cd v
|
||||||
# Download the V compiler's source translated to C
|
# Download the V compiler's source translated to C
|
||||||
curl -sO https://raw.githubusercontent.com/vlang/vc/master/v.c
|
curl -O https://raw.githubusercontent.com/vlang/vc/master/v.c
|
||||||
gcc -std=gnu11 -w -o v.exe v.c # Build it with GCC
|
gcc -std=gnu11 -w -o v.exe v.c # Build it with GCC
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ $ v run hello_world.v
|
|||||||
hello world
|
hello world
|
||||||
|
|
||||||
$ v
|
$ v
|
||||||
V 0.1.2
|
V 0.1.9
|
||||||
Use Ctrl-D to exit
|
Use Ctrl-D to exit
|
||||||
|
|
||||||
>>> println('hello world')
|
>>> println('hello world')
|
||||||
|
Loading…
Reference in New Issue
Block a user