v.builder: add support for -ldflags "" when using -cc msvc too (#22486)

This commit is contained in:
Delyan Angelov 2024-10-11 13:38:51 +03:00 committed by GitHub
parent 79786732ef
commit 11551aaf6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -354,6 +354,9 @@ pub fn (mut v Builder) cc_msvc() {
if env_ldflags != '' {
a << env_ldflags
}
if v.pref.ldflags != '' {
a << v.pref.ldflags.trim_space()
}
v.dump_c_options(a)
args := '\xEF\xBB\xBF' + a.join(' ')
// write args to a file so that we dont smash createprocess