From fa2e8d8459dd621ca17d73e2386228134291e626 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 20 Jun 2022 15:50:38 +0300 Subject: [PATCH] tools: use os.system for the c2v runs to monitor the progress more easily --- cmd/tools/translate.v | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/tools/translate.v b/cmd/tools/translate.v index 7e1cca8765..0449b38100 100644 --- a/cmd/tools/translate.v +++ b/cmd/tools/translate.v @@ -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) }