Skip to content

Commit

Permalink
v.builder: write an UTF8 BOM header for the .rsp file, when using '-c…
Browse files Browse the repository at this point in the history
…c msvc' (#22408)
  • Loading branch information
spytheman authored Oct 4, 2024
1 parent 286c442 commit 0390c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/builder/msvc_windows.v
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ pub fn (mut v Builder) cc_msvc() {
a << env_ldflags
}
v.dump_c_options(a)
args := a.join(' ')
args := '\xEF\xBB\xBF' + a.join(' ')
// write args to a file so that we dont smash createprocess
os.write_file(out_name_cmd_line, args) or {
verror('Unable to write response file to "${out_name_cmd_line}"')
Expand Down

0 comments on commit 0390c07

Please sign in to comment.