mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: fix v_win.c generation
This commit is contained in:
parent
2fe20cd092
commit
b17bf5843c
@ -10,6 +10,11 @@ import (
|
||||
)
|
||||
|
||||
fn (v mut V) cc() {
|
||||
// Just create a c file and exit
|
||||
if v.out_name.ends_with('.c') {
|
||||
os.mv(v.out_name_c, v.out_name)
|
||||
exit(0)
|
||||
}
|
||||
// Cross compiling for Windows
|
||||
if v.os == .windows {
|
||||
$if !windows {
|
||||
@ -133,10 +138,6 @@ mut args := ''
|
||||
}
|
||||
args := a.join(' ')
|
||||
cmd := '${v.pref.ccompiler} $args'
|
||||
if v.out_name.ends_with('.c') {
|
||||
os.mv( v.out_name_c, v.out_name )
|
||||
exit(0)
|
||||
}
|
||||
// Run
|
||||
if v.pref.show_c_cmd || v.pref.is_verbose {
|
||||
println('\n==========')
|
||||
|
Loading…
Reference in New Issue
Block a user