From 0b360275006659a8afccae4000f941b40463cb17 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Wed, 13 Apr 2022 14:40:03 +0200 Subject: [PATCH] repl: use the most common compiler Signed-off-by: Vincenzo Palazzo --- cmd/tools/vrepl.v | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/tools/vrepl.v b/cmd/tools/vrepl.v index 27f2fcd3ca..43a2562be5 100644 --- a/cmd/tools/vrepl.v +++ b/cmd/tools/vrepl.v @@ -543,7 +543,10 @@ fn repl_run_vfile(file string) ?os.Result { $if trace_repl_temp_files ? { eprintln('>> repl_run_vfile file: $file') } - s := os.execute('${os.quoted_path(vexe)} -repl run ${os.quoted_path(file)}') + // FIXME: gcc is slower so we could make the check on witch compiler + // is available and pick the best one, but overall the repl should not compiler + // the code, so why not focusing on a real repl? + s := os.execute('${os.quoted_path(vexe)} -repl -cc gcc run ${os.quoted_path(file)}') if s.exit_code < 0 { rerror(s.output) return error(s.output)