cmd: use x64 target and v2 parser with run arg

pull/3907/head
Daniel Däschle 2020-03-01 15:50:07 +01:00 committed by GitHub
parent 1066ec5cd9
commit 7eee5cf116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

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