1
0
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:
Delyan Angelov 2022-06-20 15:50:38 +03:00
parent 0e4198f23b
commit fa2e8d8459
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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)
} }