mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
tools: describe more precisely what commands are used by oldv
, so it can fail early, with a meaningful error message, if they are not present.
This commit is contained in:
parent
b79b4bfc81
commit
b383cce382
1 changed files with 5 additions and 1 deletions
|
@ -105,7 +105,11 @@ fn sync_cache() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
scripting.used_tools_must_exist(['git'])
|
if os.user_os() == 'windows' {
|
||||||
|
scripting.used_tools_must_exist(['git', 'wc', 'make', 'robocopy'])
|
||||||
|
} else {
|
||||||
|
scripting.used_tools_must_exist(['git', 'wc', 'make', 'rsync', 'cc'])
|
||||||
|
}
|
||||||
|
|
||||||
// Resetting VEXE here allows for `v run cmd/tools/oldv.v'.
|
// Resetting VEXE here allows for `v run cmd/tools/oldv.v'.
|
||||||
// the parent V would have set VEXE, which later will
|
// the parent V would have set VEXE, which later will
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue