From 24f5d0afc472448e65850a3b53b529ec9f8131d6 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 13 Jul 2021 22:13:28 +0300 Subject: [PATCH] ci: fix `-o x.c` regression introduced in ff62b27 --- vlib/v/builder/cc.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 47f0e9dd8d..ffb8750166 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -484,6 +484,11 @@ fn (mut v Builder) cc() { ends_with_js := v.pref.out_name.ends_with('.js') if ends_with_c || ends_with_js { 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 } // Cross compiling for Windows