mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
v.builder: write an UTF8 BOM header for the .rsp file, when using '-cc msvc' (#22408)
This commit is contained in:
parent
286c44266d
commit
0390c070ec
1 changed files with 1 additions and 1 deletions
|
@ -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}"')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue