1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: Fix for #1268 . Passing -o file.c, skips the C compiler invocation and leaves the intermediary file.c .

This commit is contained in:
Delyan Angelov 2019-07-23 09:36:57 +03:00 committed by Alexander Medvednikov
parent e25664dfbf
commit 04bd8d7f7d

View File

@ -694,7 +694,11 @@ mut args := ''
//}
$if windows {
cmd = 'gcc $args'
}
}
if v.out_name.ends_with('.c') {
os.mv( '.$v.out_name_c', v.out_name )
exit(0)
}
// Run
ticks := time.ticks()
res := os.exec(cmd)