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()