-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/vlang/v --------- Co-authored-by: Raphael Nahoum <[email protected]> Co-authored-by: Radon Rosborough <[email protected]>
- Loading branch information
1 parent
b9cd808
commit 429daf5
Showing
5 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ver="$(latest_release vlang/v)" | ||
|
||
apt-get install -y gcc libx11-dev | ||
|
||
wget -nv "https://github.com/vlang/v/releases/download/${ver}/v_linux.zip" -O v.zip | ||
unzip -q v.zip | ||
|
||
sudo mkdir /opt/vlang | ||
sudo cp -R v/. /opt/vlang/. | ||
sudo /opt/vlang/v symlink | ||
|
||
sudo v build-tools | ||
|
||
# thx https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vlang | ||
sudo touch /opt/vlang/cmd/tools/.disable_autorecompilation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
fn | ||
main() { | ||
areas:= ['game', | ||
|
||
'web', 'tools', | ||
|
||
'science', | ||
|
||
|
||
'systems', | ||
'embedded', 'drivers', 'GUI', 'mobile'] | ||
for area in areas | ||
{ | ||
|
||
|
||
|
||
|
||
|
||
println('Hello, ${area} developers!') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
fn main() { | ||
areas := ['game', 'web', 'tools', 'science', 'systems', 'embedded', 'drivers', 'GUI', 'mobile'] | ||
for area in areas { | ||
println('Hello, ${area} developers!') | ||
} | ||
} |