Skip to content

Commit

Permalink
v.builder: add support for -ldflags "" when using -cc msvc too (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman authored Oct 11, 2024
1 parent 7978673 commit 11551aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vlib/v/builder/msvc_windows.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11551aa

Please sign in to comment.