From 5eef7302900ecfbc23f7d7eef8ea3ac8f7941cef Mon Sep 17 00:00:00 2001 From: Ekopalypse <47723516+Ekopalypse@users.noreply.github.com> Date: Thu, 4 Feb 2021 20:45:59 +0100 Subject: [PATCH] builder: make msvc build if v path contains spaces (#8552) --- vlib/v/builder/msvc.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/builder/msvc.v b/vlib/v/builder/msvc.v index 240c56e461..493dfd919d 100644 --- a/vlib/v/builder/msvc.v +++ b/vlib/v/builder/msvc.v @@ -297,7 +297,7 @@ pub fn (mut v Builder) cc_msvc() { os.write_file(out_name_cmd_line, args) or { verror('Unable to write response file to "$out_name_cmd_line"') } - cmd := '"$r.full_cl_exe_path" @$out_name_cmd_line' + cmd := '"$r.full_cl_exe_path" "@$out_name_cmd_line"' // It is hard to see it at first, but the quotes above ARE balanced :-| ... // Also the double quotes at the start ARE needed. v.show_cc(cmd, out_name_cmd_line, args)