mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: add os.mv_by_cp and use it for the temporary files
This commit is contained in:

committed by
Alexander Medvednikov

parent
0cf232d692
commit
a620e66af5
@ -57,7 +57,9 @@ fn (v mut V) cc() {
|
||||
}
|
||||
}
|
||||
}
|
||||
os.mv(v.out_name_c, v.out_name)
|
||||
|
||||
// v.out_name_c may be on a different partition than v.out_name
|
||||
os.mv_by_cp(v.out_name_c, v.out_name) or { panic(err) }
|
||||
exit(0)
|
||||
}
|
||||
// Cross compiling for Windows
|
||||
|
Reference in New Issue
Block a user