tools: use os.system for the c2v runs to monitor the progress more easily

master
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
1 changed files with 3 additions and 5 deletions

View File

@ -37,11 +37,9 @@ fn main() {
passed_args := util.args_quote_paths(os.args[2..])
// println(passed_args)
os.chdir(os.wd_at_startup)?
res := os.execute('$c2v_bin $passed_args')
if res.exit_code != 0 {
eprintln(res.output)
eprintln('C2V failed to translate. Please report it via GitHub.')
res := os.system('$c2v_bin $passed_args')
if res != 0 {
eprintln('C2V failed to translate the C files. Please report it via GitHub.')
exit(4)
}
// println(res.output)
}