Skip to content

Commit 0390c07

Browse files
authored
v.builder: write an UTF8 BOM header for the .rsp file, when using '-cc msvc' (#22408)
1 parent 286c442 commit 0390c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/v/builder/msvc_windows.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ pub fn (mut v Builder) cc_msvc() {
355355
a << env_ldflags
356356
}
357357
v.dump_c_options(a)
358-
args := a.join(' ')
358+
args := '\xEF\xBB\xBF' + a.join(' ')
359359
// write args to a file so that we dont smash createprocess
360360
os.write_file(out_name_cmd_line, args) or {
361361
verror('Unable to write response file to "${out_name_cmd_line}"')

0 commit comments

Comments
 (0)