ci: fix `-o x.c` regression introduced in ff62b27

pull/10791/head
Delyan Angelov 2021-07-13 22:13:28 +03:00
parent ff62b27ef0
commit 24f5d0afc4
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 5 additions and 0 deletions

View File

@ -484,6 +484,11 @@ fn (mut v Builder) cc() {
ends_with_js := v.pref.out_name.ends_with('.js') ends_with_js := v.pref.out_name.ends_with('.js')
if ends_with_c || ends_with_js { if ends_with_c || ends_with_js {
v.pref.skip_running = true v.pref.skip_running = true
msg_mv := 'os.mv_by_cp $v.out_name_c => $v.pref.out_name'
util.timing_start(msg_mv)
// v.out_name_c may be on a different partition than v.out_name
os.mv_by_cp(v.out_name_c, v.pref.out_name) or { panic(err) }
util.timing_measure(msg_mv)
return return
} }
// Cross compiling for Windows // Cross compiling for Windows