compiler: Fix for #1268 . Passing -o file.c, skips the C compiler invocation and leaves the intermediary file.c .
parent
e25664dfbf
commit
04bd8d7f7d
|
@ -695,6 +695,10 @@ mut args := ''
|
||||||
$if windows {
|
$if windows {
|
||||||
cmd = 'gcc $args'
|
cmd = 'gcc $args'
|
||||||
}
|
}
|
||||||
|
if v.out_name.ends_with('.c') {
|
||||||
|
os.mv( '.$v.out_name_c', v.out_name )
|
||||||
|
exit(0)
|
||||||
|
}
|
||||||
// Run
|
// Run
|
||||||
ticks := time.ticks()
|
ticks := time.ticks()
|
||||||
res := os.exec(cmd)
|
res := os.exec(cmd)
|
||||||
|
|
Loading…
Reference in New Issue