builder: make msvc build if v path contains spaces (#8552)
parent
48892a52fa
commit
5eef730290
|
@ -297,7 +297,7 @@ pub fn (mut v Builder) cc_msvc() {
|
||||||
os.write_file(out_name_cmd_line, args) or {
|
os.write_file(out_name_cmd_line, args) or {
|
||||||
verror('Unable to write response file to "$out_name_cmd_line"')
|
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 :-| ...
|
// It is hard to see it at first, but the quotes above ARE balanced :-| ...
|
||||||
// Also the double quotes at the start ARE needed.
|
// Also the double quotes at the start ARE needed.
|
||||||
v.show_cc(cmd, out_name_cmd_line, args)
|
v.show_cc(cmd, out_name_cmd_line, args)
|
||||||
|
|
Loading…
Reference in New Issue