Skip to content

Commit b383cce

Browse files
committed
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.
1 parent b79b4bf commit b383cce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/tools/oldv.v

+5-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ fn sync_cache() {
105105
}
106106

107107
fn main() {
108-
scripting.used_tools_must_exist(['git'])
108+
if os.user_os() == 'windows' {
109+
scripting.used_tools_must_exist(['git', 'wc', 'make', 'robocopy'])
110+
} else {
111+
scripting.used_tools_must_exist(['git', 'wc', 'make', 'rsync', 'cc'])
112+
}
109113

110114
// Resetting VEXE here allows for `v run cmd/tools/oldv.v'.
111115
// the parent V would have set VEXE, which later will

0 commit comments

Comments
 (0)