From 0390c070ece0c29c103a9cc9a13c12c88080b0c4 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 4 Oct 2024 14:00:47 +0300 Subject: [PATCH] v.builder: write an UTF8 BOM header for the .rsp file, when using '-cc msvc' (#22408) --- vlib/v/builder/msvc_windows.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/builder/msvc_windows.v b/vlib/v/builder/msvc_windows.v index fb75c4716be139..22c069120e2769 100644 --- a/vlib/v/builder/msvc_windows.v +++ b/vlib/v/builder/msvc_windows.v @@ -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}"')