mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
v.builder: add support for -ldflags ""
when using -cc msvc
too (#22486)
This commit is contained in:
parent
79786732ef
commit
11551aaf6b
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue