mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools: use os.system for the c2v runs to monitor the progress more easily
This commit is contained in:
parent
0e4198f23b
commit
fa2e8d8459
@ -37,11 +37,9 @@ fn main() {
|
|||||||
passed_args := util.args_quote_paths(os.args[2..])
|
passed_args := util.args_quote_paths(os.args[2..])
|
||||||
// println(passed_args)
|
// println(passed_args)
|
||||||
os.chdir(os.wd_at_startup)?
|
os.chdir(os.wd_at_startup)?
|
||||||
res := os.execute('$c2v_bin $passed_args')
|
res := os.system('$c2v_bin $passed_args')
|
||||||
if res.exit_code != 0 {
|
if res != 0 {
|
||||||
eprintln(res.output)
|
eprintln('C2V failed to translate the C files. Please report it via GitHub.')
|
||||||
eprintln('C2V failed to translate. Please report it via GitHub.')
|
|
||||||
exit(4)
|
exit(4)
|
||||||
}
|
}
|
||||||
// println(res.output)
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user