Skip to content

Commit 0ea6667

Browse files
authored
v.live: fix the output name, used for the .dll/.so creation, when -live -cc is used (make it work with -cc msvc) (fix #6936) (#23878)
1 parent e475e9d commit 0ea6667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vlib/v/live/executable/reloader.c.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ fn compile_and_reload_shared_lib(mut r live.LiveReloadInfo) !bool {
7878
}
7979

8080
fn compile_lib(mut r live.LiveReloadInfo) ?string {
81-
new_lib_path, new_lib_path_with_extension := current_shared_library_path(mut r)
82-
cmd := '${os.quoted_path(r.vexe)} ${r.vopts} -o ${os.quoted_path(new_lib_path)} ${os.quoted_path(r.original)}'
81+
_, new_lib_path_with_extension := current_shared_library_path(mut r)
82+
cmd := '${os.quoted_path(r.vexe)} ${r.vopts} -o ${os.quoted_path(new_lib_path_with_extension)} ${os.quoted_path(r.original)}'
8383
elog(r, '> compilation cmd: ${cmd}')
8484
cwatch := time.new_stopwatch()
8585
recompilation_result := os.execute(cmd)

0 commit comments

Comments
 (0)