mirror of
https://github.com/vlang/v.git
synced 2025-09-12 08:57:09 -04: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
@ -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…
x
Reference in New Issue
Block a user