From 7eee5cf1168f5508079eb60c5830d483bce2f580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=C3=A4schle?= Date: Sun, 1 Mar 2020 15:50:07 +0100 Subject: [PATCH] cmd: use x64 target and v2 parser with run arg --- cmd/v/compile.v | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd/v/compile.v b/cmd/v/compile.v index dcc544132a..d304e9355c 100644 --- a/cmd/v/compile.v +++ b/cmd/v/compile.v @@ -19,7 +19,15 @@ fn compile(command string, args []string) { if command == 'run' { // always recompile for now, too error prone to skip recompilation otherwise // for example for -repl usage, especially when piping lines to v - v.compile() + if v.pref.x64 { + v.compile_x64() + } + else if v.pref.v2 { + v.compile2() + } + else { + v.compile() + } run_compiled_executable_and_exit(v, args) } mut tmark := benchmark.new_benchmark()