1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builder: make msvc build if v path contains spaces (#8552)

This commit is contained in:
Ekopalypse 2021-02-04 20:45:59 +01:00 committed by GitHub
parent 48892a52fa
commit 5eef730290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)